-
-
Save dennisoderwald/1b7238c36d2c2fc59568d8058ca91fe8 to your computer and use it in GitHub Desktop.
Add Graylog to Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app->configureMonologUsing(function($monolog) { | |
$transport = new \Gelf\Transport\UdpTransport("192.168.99.100", 12201, \Gelf\Transport\UdpTransport::CHUNK_SIZE_LAN); | |
$publisher = new \Gelf\Publisher(); | |
$publisher->addTransport($transport); | |
$monolog->pushHandler(new \Monolog\Handler\GelfHandler($publisher)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment