Skip to content

Instantly share code, notes, and snippets.

View shoaibnawaz's full-sized avatar

Shuaib Nawaz shoaibnawaz

  • Islamabad, Pakistan
View GitHub Profile
@ciarans
ciarans / app.php
Last active March 8, 2022 12:16
Add Graylog to Laravel
$app->configureMonologUsing(function($monolog) {
$transport = new \Gelf\Transport\UdpTransport("127.0.0.1", 12201, \Gelf\Transport\UdpTransport::CHUNK_SIZE_LAN);
$publisher = new \Gelf\Publisher();
$publisher->addTransport($transport);
$monolog->pushHandler(new \Monolog\Handler\GelfHandler($publisher));
});