ias / newrelic-logger-bundle
Logs to New Relic in Symfony apps
Installs: 13 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- newrelic/monolog-enricher: ^1.0 || ^2.0
- symfony/dependency-injection: ~4.4 || ^5.0
- symfony/monolog-bundle: ^3.0
- symfony/yaml: ~4.4 || ^5.0
Requires (Dev)
- symfony/phpunit-bridge: ^5.0
This package is auto-updated.
Last update: 2023-03-30 17:58:38 UTC
README
This bundle logs to New Relic in Symfony apps.
Requirements
- Requirements from newrelic/monolog-enricher
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
$ composer require ias/newrelic-logger-bundle
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require ias/newrelic-logger-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php return [ // ... IAS\NewRelicLoggerBundle\IASNewRelicLoggerBundle::class => ['all' => true], ];
Create a configuration file to change service defaults:
# ias_new_relic_logger.yaml ias_new_relic_logger: buffer_limit: 0 level: !php/const Monolog\Logger::INFO
Options:
- buffer_limit: see Monolog\Handler\BufferHandler
- level: one of the levels defined in Monolog\Logger
Activate the log handler:
monolog: handlers: newrelic: type: service id: ias_new_relic_logger.handler
Developers
Requirements
- PHP 7
- Composer
Build
composer build