Definition at line 16 of file WildfireFormatterTest.php.
◆ testBatchFormatThrowException()
Monolog\Formatter\WildfireFormatterTest::testBatchFormatThrowException |
( |
| ) |
|
Monolog::formatBatch BadMethodCallException
Definition at line 96 of file WildfireFormatterTest.php.
References array, and Monolog\Logger\ERROR.
98 $wildfire =
new WildfireFormatter();
101 'level_name' =>
'ERROR',
103 'context' =>
array(),
109 $wildfire->formatBatch(
array($record));
const ERROR
Runtime errors.
Create styles array
The data for the language used.
◆ testDefaultFormat()
Monolog\Formatter\WildfireFormatterTest::testDefaultFormat |
( |
| ) |
|
Monologformat
Definition at line 21 of file WildfireFormatterTest.php.
References $message, array, and Monolog\Logger\ERROR.
23 $wildfire =
new WildfireFormatter();
26 'level_name' =>
'ERROR',
28 'context' =>
array(
'from' =>
'logger'),
30 'extra' =>
array(
'ip' =>
'127.0.0.1'),
34 $message = $wildfire->format($record);
37 '125|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},' 38 .
'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
const ERROR
Runtime errors.
catch(Exception $e) $message
Create styles array
The data for the language used.
◆ testFormatWithFileAndLine()
Monolog\Formatter\WildfireFormatterTest::testFormatWithFileAndLine |
( |
| ) |
|
Monologformat
Definition at line 46 of file WildfireFormatterTest.php.
References $message, array, and Monolog\Logger\ERROR.
48 $wildfire =
new WildfireFormatter();
51 'level_name' =>
'ERROR',
53 'context' =>
array(
'from' =>
'logger'),
55 'extra' =>
array(
'ip' =>
'127.0.0.1',
'file' =>
'test',
'line' => 14),
59 $message = $wildfire->format($record);
62 '129|[{"Type":"ERROR","File":"test","Line":14,"Label":"meh"},' 63 .
'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
const ERROR
Runtime errors.
catch(Exception $e) $message
Create styles array
The data for the language used.
◆ testFormatWithoutContext()
Monolog\Formatter\WildfireFormatterTest::testFormatWithoutContext |
( |
| ) |
|
Monologformat
Definition at line 71 of file WildfireFormatterTest.php.
References $message, array, and Monolog\Logger\ERROR.
73 $wildfire =
new WildfireFormatter();
76 'level_name' =>
'ERROR',
84 $message = $wildfire->format($record);
87 '58|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},"log"]|',
const ERROR
Runtime errors.
catch(Exception $e) $message
Create styles array
The data for the language used.
◆ testTableFormat()
Monolog\Formatter\WildfireFormatterTest::testTableFormat |
( |
| ) |
|
Monologformat
Definition at line 115 of file WildfireFormatterTest.php.
References $message, array, Monolog\Logger\ERROR, and Monolog\Formatter\WildfireFormatter\TABLE.
117 $wildfire =
new WildfireFormatter();
120 'level_name' =>
'ERROR',
121 'channel' =>
'table-channel',
124 array(
'col1',
'col2',
'col3'),
125 array(
'val1',
'val2',
'val3'),
126 array(
'foo1',
'foo2',
'foo3'),
127 array(
'bar1',
'bar2',
'bar3'),
132 'message' =>
'table-message',
135 $message = $wildfire->format($record);
138 '171|[{"Type":"TABLE","File":"","Line":"","Label":"table-channel: table-message"},[["col1","col2","col3"],["val1","val2","val3"],["foo1","foo2","foo3"],["bar1","bar2","bar3"]]]|',
const ERROR
Runtime errors.
catch(Exception $e) $message
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: