Skip to content

Zero config Monolog channel and formatter for Laravel logging into Lagoon

Notifications You must be signed in to change notification settings

amazeeio/laravel_lagoon_logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lagoon Logs for Laravel

Monolog channel and formatter for Laravel logging into Lagoon.

Basic Usage

Installing this package makes the channel "LagoonLogs" available in your logging config.

You can install the package by simply running composer require amazeeio/lagoon-logs - the package should be installed and autodiscovered by Laravel.

It's important to note that this is essentially a wrapper around a Monolog Logger with a specifically set UDP SocketHandler and LogstashFormatter - therefore, it really only makes sense to use this when deployed to a Lagoon instance.

In a vanilla Laravel 6 installation, this is most easily done by setting the environment variable LOG_CHANNEL to LagoonLogs.

If you need more control over your logging stack, you can simply add LagoonLogs in the appropriate places (such as a stack) in your ./config/logging.php file. See the Laravel 6 docs for more on customizing logging.

About

Zero config Monolog channel and formatter for Laravel logging into Lagoon

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages