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

Fix Fluentd array notation to support older PHP versions

This commit is contained in:
fordnox
2015-11-15 20:46:26 +02:00
parent a5552dd34d
commit 6abfc22762

View File

@@ -14,7 +14,7 @@ namespace Monolog\Formatter;
/**
* Class FluentdFormatter
*
* Serializes a log message to Fluetd unix socket protocol
* Serializes a log message to Fluentd unix socket protocol
*
* Fluentd config:
*
@@ -63,11 +63,11 @@ class FluentdFormatter implements FormatterInterface
. ', '
. $record['datetime']->getTimestamp()
. ', '
. json_encode([
. json_encode(array(
'message' => $record['message'],
'level' => $record['level'],
'level_name' => $record['level_name'],
'extra' => $record['extra']])
'extra' => $record['extra']))
. ']';
}