20 $GLOBALS[
'error_log'][] = func_get_args();
47 $handler->setFormatter(
new LineFormatter(
'%channel%.%level_name%: %message% %context% %extra%', null,
true));
50 $this->assertSame(
"test.ERROR: Foo\nBar\r\n\r\nBaz [] []",
$GLOBALS[
'error_log'][0][0]);
51 $this->assertSame(
$GLOBALS[
'error_log'][0][1], $type);
57 $this->assertStringMatchesFormat(
'[%s] test.ERROR: Foo',
$GLOBALS[
'error_log'][1][0]);
58 $this->assertSame(
$GLOBALS[
'error_log'][1][1], $type);
60 $this->assertStringMatchesFormat(
'Bar',
$GLOBALS[
'error_log'][2][0]);
61 $this->assertSame(
$GLOBALS[
'error_log'][2][1], $type);
63 $this->assertStringMatchesFormat(
'Baz [] []',
$GLOBALS[
'error_log'][3][0]);
64 $this->assertSame(
$GLOBALS[
'error_log'][3][1], $type);
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
testShouldLogMessagesUsingErrorLogFuncion()
Monolog::write
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Stores to PHP error_log() handler.
getRecord($level=Logger::WARNING, $message='test', $context=array())
testShouldNotAcceptAnInvalidTypeOnContructor()
Monolog::__construct InvalidArgumentException The given message type "42" is not supported ...
Create styles array
The data for the language used.