bradley-holt / WhitewashingLogglyBundle

loggly.com logger for Monolog integrated into Symfony2

Home Page:http://www.whitewashing.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LogglyBundle

Loggly handler for Monolog as a Symfony bundle.

The bundle is inspired from Monologgly

Installation

Deps

[WhitewashingLogglyBundle]
    git=https://github.com/beberlei/WhitewashingLogglyBundle.git
    target=/bundles/Whitewashing/Bundle/LogglyBundle

Kernel

$bundles = array(
    //..
    new Whitewashing\Bundle\LogglyBundle\WhitewashingLogglyBundle(),
);

Autoload:

$loader->registerNamespaces(array(
    //..
    'Whitewashing' => __DIR__.'/../vendor/bundles',
));

Configuration

Configure Monolog

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      loggly
        loggly:
            type: service
            id: whitewashing_loggly.monolog_handler

Configure Loggly:

whitewashing_loggly:
    # Loggly input key
    key: abcdefg

    # Loggly API host
    host: logs.loggly.com

    # Loggly API port (443 for HTTPS, 80 for HTTP)
    port: 443

    # Level to be logged (defaults to DEBUG)
    level: DEBUG

    bubble: true

About

loggly.com logger for Monolog integrated into Symfony2

http://www.whitewashing.de

License:MIT License


Languages

Language:PHP 100.0%