teraone/laravel-newrelic-logger is a Laravel package.
It currently has 0 GitHub stars and 14.109 downloads on Packagist (latest version v10.0.2).
Install it with composer require teraone/laravel-newrelic-logger.
Discover more Laravel packages by teraone
or browse all Laravel packages to compare alternatives.
Last updated
This Package adds a Log Driver that formats the logs so the new relic infrastructure agent can parse them properly.
You can install the package via composer.
For Laravel 10:
composer require teraone/laravel-newrelic-logger:"10.*"
For Laravel 9:
composer require teraone/laravel-newrelic-logger:"9.*"
Just add a Log Channel with the driver "newrelic" to the logging.php config file:
'newrelic' => [
'driver' => 'newrelic'
]
There you can configure what else should be included in the logs:
'newrelic' => [
'driver' => 'newrelic',
'additional_info' => [
'env' => env('APP_ENV'),
'hostname' => gethostname()
]
]
Then you can set the log channel in the .env file:
LOG_CHANNEL=newrelic
The MIT License (MIT). Please see License File for more information.