ias/newrelic-logger-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Logs to New Relic in Symfony apps

Installs: 12 461

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.2.0 2021-03-30 14:41 UTC

This package is auto-updated.

Last update: 2023-03-30 17:58:38 UTC


README

Build Status

This bundle logs to New Relic in Symfony apps.

Requirements

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