Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

loggly.com logger for Monolog integrated into Symfony2 - not really maintained anymore

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 DependencyInjection
Octocat-spinner-32 Monolog
Octocat-spinner-32 Resources
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 WhitewashingLogglyBundle.php
Octocat-spinner-32 composer.json
README.md

LogglyBundle

Bundle is not maintained anymore, but mostly works because of its simplicity.

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
Something went wrong with that request. Please try again.