26 'level_name' =>
'ERROR',
28 'context' => array(
'from' =>
'logger'),
29 'datetime' =>
new \DateTime(
"@0"),
30 'extra' => array(
'ip' =>
'127.0.0.1'),
34 $message = $formatter->format($record);
41 'context' => array(
'from' =>
'logger'),
42 'extra' => array(
'ip' =>
'127.0.0.1'),
59 'level_name' =>
'CRITICAL',
61 'context' => array(
'from' =>
'logger'),
62 'datetime' =>
new \DateTime(
"@0"),
63 'extra' => array(
'ip' =>
'127.0.0.1',
'file' =>
'test',
'line' => 14),
67 $message = $formatter->format($record);
74 'context' => array(
'from' =>
'logger'),
75 'extra' => array(
'ip' =>
'127.0.0.1'),
92 'level_name' =>
'DEBUG',
95 'datetime' =>
new \DateTime(
"@0"),
100 $message = $formatter->format($record);
122 'level_name' =>
'INFO',
124 'context' => array(),
125 'datetime' =>
new \DateTime(
"@0"),
131 'level_name' =>
'WARNING',
133 'context' => array(),
134 'datetime' =>
new \DateTime(
"@0"),
An exception for terminatinating execution or to throw for unit testing.
const ERROR
Runtime errors.
const CRITICAL
Critical conditions.
const WARNING
Exceptional occurrences that are not errors.
const INFO
Interesting events.
const DEBUG
Detailed debug information.
catch(Exception $e) $message