1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

Updated GelfHandler/GelfFormatter

Changes monolog to use the updated official graylog2/gelf-php
This commit is contained in:
Benjamin Zikarsky
2013-12-18 21:05:55 +01:00
parent c9db00f882
commit c8289fd654
5 changed files with 63 additions and 61 deletions

View File

@@ -18,8 +18,8 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
if (!class_exists("Gelf\Message")) {
$this->markTestSkipped("mlehner/gelf-php not installed");
if (!class_exists('\Gelf\Message')) {
$this->markTestSkipped("graylog2/gelf-php not installed");
}
}
@@ -47,7 +47,7 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('meh', $message->getFacility());
$this->assertEquals(null, $message->getLine());
$this->assertEquals(null, $message->getFile());
$this->assertEquals(3, $message->getLevel());
$this->assertEquals(3, $message->getSyslogLevel());
$this->assertNotEmpty($message->getHost());
$formatter = new GelfMessageFormatter('mysystem');