LogglyBundle
Bundle is not maintained anymore, but mostly works because of its simplicity.
Loggly handler for Monolog as a Symfony bundle., (*1)
The bundle is inspired from Monologgly, (*2)
Installation
Deps, (*3)
[WhitewashingLogglyBundle]
git=https://github.com/beberlei/WhitewashingLogglyBundle.git
target=/bundles/Whitewashing/Bundle/LogglyBundle
Kernel, (*4)
$bundles = array(
//..
new Whitewashing\Bundle\LogglyBundle\WhitewashingLogglyBundle(),
);
Autoload:, (*5)
$loader->registerNamespaces(array(
//..
'Whitewashing' => __DIR__.'/../vendor/bundles',
));
Configuration
Configure Monolog, (*6)
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: loggly
loggly:
type: service
id: whitewashing_loggly.monolog_handler
Configure Loggly:, (*7)
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