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]);
57 $this->assertStringMatchesFormat(
'[%s] test.ERROR: Foo',
$GLOBALS[
'error_log'][1][0]);
60 $this->assertStringMatchesFormat(
'Bar',
$GLOBALS[
'error_log'][2][0]);
63 $this->assertStringMatchesFormat(
'Baz [] []',
$GLOBALS[
'error_log'][3][0]);
An exception for terminatinating execution or to throw for unit testing.
testShouldLogMessagesUsingErrorLogFuncion()
@covers Monolog\Handler\ErrorLogHandler::write
testShouldNotAcceptAnInvalidTypeOnContructor()
@covers Monolog\Handler\ErrorLogHandler::__construct @expectedException InvalidArgumentException @exp...
Stores to PHP error_log() handler.
const ERROR
Runtime errors.
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.