44 if (!function_exists(
'json_encode')) {
45 throw new \RuntimeException(
'PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter');
58 $tag = $record[
'channel'];
59 if ($this->levelTag) {
60 $tag .=
'.' . strtolower($record[
'level_name']);
64 'message' => $record[
'message'],
65 'extra' => $record[
'extra'],
68 if (!$this->levelTag) {
69 $message[
'level'] = $record[
'level'];
70 $message[
'level_name'] = $record[
'level_name'];
73 return json_encode(
array($tag, $record[
'datetime']->getTimestamp(), $message));
79 foreach ($records as $record) {
80 $message .= $this->
format($record);
Create styles array
The data for the language used.