ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($name, array $handlers=array(), array $processors=array()) | |
getName () | |
withName ($name) | |
Return a new cloned instance with the name changed. More... | |
pushHandler (HandlerInterface $handler) | |
Pushes a handler on to the stack. More... | |
popHandler () | |
Pops a handler from the stack. More... | |
setHandlers (array $handlers) | |
Set handlers, replacing all existing ones. More... | |
getHandlers () | |
pushProcessor ($callback) | |
Adds a processor on to the stack. More... | |
popProcessor () | |
Removes the processor on top of the stack and returns it. More... | |
getProcessors () | |
useMicrosecondTimestamps ($micro) | |
Control the use of microsecond resolution timestamps in the 'datetime' member of new records. More... | |
addRecord ($level, $message, array $context=array()) | |
Adds a log record. More... | |
close () | |
Ends a log cycle and frees all resources used by handlers. More... | |
reset () | |
Ends a log cycle and resets all handlers and processors to their initial state. More... | |
addDebug ($message, array $context=array()) | |
Adds a log record at the DEBUG level. More... | |
addInfo ($message, array $context=array()) | |
Adds a log record at the INFO level. More... | |
addNotice ($message, array $context=array()) | |
Adds a log record at the NOTICE level. More... | |
addWarning ($message, array $context=array()) | |
Adds a log record at the WARNING level. More... | |
addError ($message, array $context=array()) | |
Adds a log record at the ERROR level. More... | |
addCritical ($message, array $context=array()) | |
Adds a log record at the CRITICAL level. More... | |
addAlert ($message, array $context=array()) | |
Adds a log record at the ALERT level. More... | |
addEmergency ($message, array $context=array()) | |
Adds a log record at the EMERGENCY level. More... | |
isHandling ($level) | |
Checks whether the Logger has a handler that listens on the given level. More... | |
setExceptionHandler ($callback) | |
Set a custom exception handler. More... | |
getExceptionHandler () | |
log ($level, $message, array $context=array()) | |
Adds a log record at an arbitrary level. More... | |
debug ($message, array $context=array()) | |
Adds a log record at the DEBUG level. More... | |
info ($message, array $context=array()) | |
Adds a log record at the INFO level. More... | |
notice ($message, array $context=array()) | |
Adds a log record at the NOTICE level. More... | |
warn ($message, array $context=array()) | |
Adds a log record at the WARNING level. More... | |
warning ($message, array $context=array()) | |
Adds a log record at the WARNING level. More... | |
err ($message, array $context=array()) | |
Adds a log record at the ERROR level. More... | |
error ($message, array $context=array()) | |
Adds a log record at the ERROR level. More... | |
crit ($message, array $context=array()) | |
Adds a log record at the CRITICAL level. More... | |
critical ($message, array $context=array()) | |
Adds a log record at the CRITICAL level. More... | |
alert ($message, array $context=array()) | |
Adds a log record at the ALERT level. More... | |
emerg ($message, array $context=array()) | |
Adds a log record at the EMERGENCY level. More... | |
emergency ($message, array $context=array()) | |
Adds a log record at the EMERGENCY level. More... | |
Static Public Member Functions | |
static | getLevels () |
Gets all supported logging levels. More... | |
static | getLevelName ($level) |
Gets the name of the logging level. More... | |
static | toMonologLevel ($level) |
Converts PSR-3 levels to Monolog ones if necessary. More... | |
static | setTimezone (\DateTimeZone $tz) |
Set the timezone to be used for the timestamp of log records. More... | |
Data Fields | |
const | DEBUG = 100 |
Detailed debug information. More... | |
const | INFO = 200 |
Interesting events. More... | |
const | NOTICE = 250 |
Uncommon events. More... | |
const | WARNING = 300 |
Exceptional occurrences that are not errors. More... | |
const | ERROR = 400 |
Runtime errors. More... | |
const | CRITICAL = 500 |
Critical conditions. More... | |
const | ALERT = 550 |
Action must be taken immediately. More... | |
const | EMERGENCY = 600 |
Urgent alert. More... | |
const | API = 1 |
Protected Member Functions | |
handleException (Exception $e, array $record) | |
Delegates exception management to the custom exception handler, or throws the exception if no custom handler is set. More... | |
Protected Attributes | |
$name | |
$handlers | |
$processors | |
$microsecondTimestamps = true | |
$exceptionHandler | |
Static Protected Attributes | |
static | $levels |
static | $timezone |
Monolog log channel.
It contains a stack of Handlers and a stack of Processors, and uses them to store records that are added to it.
Definition at line 28 of file Logger.php.
Monolog\Logger::__construct | ( | $name, | |
array | $handlers = array() , |
||
array | $processors = array() |
||
) |
string | $name | The logging channel |
HandlerInterface[] | $handlers Optional stack of handlers, the first one in the array is called first, etc. | |
callable[] | $processors Optional array of processors |
Definition at line 147 of file Logger.php.
References $name.
Monolog\Logger::addAlert | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the ALERT level.
string | $message | The log message |
array | $context | The log context |
Definition at line 480 of file Logger.php.
References $context, and $message.
Monolog\Logger::addCritical | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the CRITICAL level.
string | $message | The log message |
array | $context | The log context |
Definition at line 468 of file Logger.php.
References $context, and $message.
Monolog\Logger::addDebug | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the DEBUG level.
string | $message | The log message |
array | $context | The log context |
Definition at line 408 of file Logger.php.
References $context, $message, and DEBUG.
Monolog\Logger::addEmergency | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the EMERGENCY level.
string | $message | The log message |
array | $context | The log context |
Definition at line 492 of file Logger.php.
References $context, and $message.
Monolog\Logger::addError | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the ERROR level.
string | $message | The log message |
array | $context | The log context |
Definition at line 456 of file Logger.php.
References $context, and $message.
Monolog\Logger::addInfo | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the INFO level.
string | $message | The log message |
array | $context | The log context |
Definition at line 420 of file Logger.php.
References $context, and $message.
Monolog\Logger::addNotice | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the NOTICE level.
string | $message | The log message |
array | $context | The log context |
Definition at line 432 of file Logger.php.
References $context, and $message.
Monolog\Logger::addRecord | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
Adds a log record.
int | $level | The logging level |
string | $message | The log message |
array | $context | The log context |
Definition at line 292 of file Logger.php.
References $context, $handler, $message, and DEBUG.
Monolog\Logger::addWarning | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the WARNING level.
string | $message | The log message |
array | $context | The log context |
Definition at line 444 of file Logger.php.
References $context, and $message.
Monolog\Logger::alert | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the ALERT level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 747 of file Logger.php.
References $context, and $message.
Monolog\Logger::close | ( | ) |
Ends a log cycle and frees all resources used by handlers.
Closing a Handler means flushing all buffers and freeing any open resources/handles. Handlers that have been closed should be able to accept log records again and re-open themselves on demand, but this may not always be possible depending on implementation.
This is useful at the end of a request and will be called automatically on every handler when they get destructed.
Definition at line 367 of file Logger.php.
References $handler.
Monolog\Logger::crit | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the CRITICAL level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Definition at line 719 of file Logger.php.
References $context, and $message.
Monolog\Logger::critical | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the CRITICAL level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 733 of file Logger.php.
References $context, and $message.
Monolog\Logger::debug | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the DEBUG level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 621 of file Logger.php.
References $context, $message, and DEBUG.
Monolog\Logger::emerg | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the EMERGENCY level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Definition at line 761 of file Logger.php.
References $context, and $message.
Monolog\Logger::emergency | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the EMERGENCY level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 775 of file Logger.php.
References $context, and $message.
Monolog\Logger::err | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the ERROR level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Definition at line 691 of file Logger.php.
References $context, and $message.
Monolog\Logger::error | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the ERROR level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 705 of file Logger.php.
References $context, and $message.
Monolog\Logger::getExceptionHandler | ( | ) |
Monolog\Logger::getHandlers | ( | ) |
Definition at line 223 of file Logger.php.
|
static |
Gets the name of the logging level.
int | $level |
Definition at line 513 of file Logger.php.
Referenced by Monolog\Handler\ChromePHPHandler\send(), Monolog\Handler\Slack\SlackRecordTest\testAddsLongAttachmentWithContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsLongAttachmentWithoutContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsShortAttachmentWithContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsShortAttachmentWithoutContextAndExtra(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthArray(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthArrayInfiniteNesting(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthException(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthObjects(), Monolog\Handler\FleepHookHandlerTest\testHandlerUsesLineFormatterWhichIgnoresEmptyArrays(), Monolog\Formatter\MongoDBFormatterTest\testRecursiveFormat(), and Monolog\Formatter\MongoDBFormatterTest\testSimpleFormat().
|
static |
Gets all supported logging levels.
Definition at line 502 of file Logger.php.
Referenced by Monolog\Handler\FilterHandler\setAcceptedLevels().
Monolog\Logger::getName | ( | ) |
Definition at line 157 of file Logger.php.
References $name.
Referenced by Monolog\Registry\addLogger().
Monolog\Logger::getProcessors | ( | ) |
|
protected |
Delegates exception management to the custom exception handler, or throws the exception if no custom handler is set.
Definition at line 586 of file Logger.php.
Monolog\Logger::info | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the INFO level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 635 of file Logger.php.
References $context, and $message.
Monolog\Logger::isHandling | ( | $level | ) |
Checks whether the Logger has a handler that listens on the given level.
int | $level |
Definition at line 543 of file Logger.php.
References $handler.
Monolog\Logger::log | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
Adds a log record at an arbitrary level.
This method allows for compatibility with common interfaces.
mixed | $level | The log level |
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 605 of file Logger.php.
References $context, and $message.
Monolog\Logger::notice | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the NOTICE level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 649 of file Logger.php.
References $context, and $message.
Monolog\Logger::popHandler | ( | ) |
Monolog\Logger::popProcessor | ( | ) |
Removes the processor on top of the stack and returns it.
Definition at line 249 of file Logger.php.
Monolog\Logger::pushHandler | ( | HandlerInterface | $handler | ) |
Pushes a handler on to the stack.
HandlerInterface | $handler |
Definition at line 181 of file Logger.php.
Monolog\Logger::pushProcessor | ( | $callback | ) |
Adds a processor on to the stack.
callable | $callback |
Definition at line 234 of file Logger.php.
Monolog\Logger::reset | ( | ) |
Ends a log cycle and resets all handlers and processors to their initial state.
Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal state, and getting it back to a state in which it can receive log records again.
This is useful in case you want to avoid logs leaking between two requests or jobs when you have a long running process like a worker or an application server serving multiple requests in one process.
Implements Monolog\ResettableInterface.
Definition at line 386 of file Logger.php.
References $handler.
Monolog\Logger::setExceptionHandler | ( | $callback | ) |
Set a custom exception handler.
callable | $callback |
Definition at line 564 of file Logger.php.
Monolog\Logger::setHandlers | ( | array | $handlers | ) |
Set handlers, replacing all existing ones.
If a map is passed, keys will be ignored.
HandlerInterface[] | $handlers |
Definition at line 210 of file Logger.php.
References $handler.
|
static |
Set the timezone to be used for the timestamp of log records.
This is stored globally for all Logger instances
\DateTimeZone | $tz | Timezone object |
Definition at line 787 of file Logger.php.
References $tz.
|
static |
Converts PSR-3 levels to Monolog ones if necessary.
string|int | Level number (monolog) or name (PSR-3) |
Definition at line 528 of file Logger.php.
Referenced by Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy\__construct(), Monolog\Processor\MercurialProcessor\__construct(), Monolog\Processor\GitProcessor\__construct(), Monolog\Processor\IntrospectionProcessor\__construct(), Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy\__construct(), Monolog\Handler\FingersCrossedHandler\__construct(), Monolog\Handler\DeduplicationHandler\__construct(), Monolog\Handler\PushoverHandler\__construct(), Monolog\Handler\FilterHandler\setAcceptedLevels(), and Monolog\Handler\AbstractHandler\setLevel().
Monolog\Logger::useMicrosecondTimestamps | ( | $micro | ) |
Control the use of microsecond resolution timestamps in the 'datetime' member of new records.
Generating microsecond resolution timestamps by calling microtime(true), formatting the result via sprintf() and then parsing the resulting string via ::createFromFormat() can incur a measurable runtime overhead vs simple usage of DateTime to capture a second resolution timestamp in systems which generate a large number of log events.
bool | $micro | True to use microtime() to create timestamps |
Definition at line 279 of file Logger.php.
Monolog\Logger::warn | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the WARNING level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Definition at line 663 of file Logger.php.
References $context, and $message.
Monolog\Logger::warning | ( | $message, | |
array | $context = array() |
||
) |
Adds a log record at the WARNING level.
This method allows for compatibility with common interfaces.
string | $message | The log message |
array | $context | The log context |
Implements Psr\Log\LoggerInterface.
Definition at line 677 of file Logger.php.
References $context, and $message.
Monolog\Logger::withName | ( | $name | ) |
Return a new cloned instance with the name changed.
Definition at line 167 of file Logger.php.
References $name.
|
protected |
Definition at line 140 of file Logger.php.
|
protected |
Definition at line 121 of file Logger.php.
|
staticprotected |
Definition at line 95 of file Logger.php.
|
protected |
Definition at line 135 of file Logger.php.
|
protected |
Definition at line 114 of file Logger.php.
|
protected |
Definition at line 130 of file Logger.php.
|
staticprotected |
Definition at line 109 of file Logger.php.
const Monolog\Logger::ALERT = 550 |
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
Definition at line 73 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testAcceptedLevelApi(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), and Monolog\Handler\FilterHandlerTest\testIsHandling().
const Monolog\Logger::API = 1 |
Definition at line 88 of file Logger.php.
const Monolog\Logger::CRITICAL = 500 |
Critical conditions.
Example: Application component unavailable, unexpected exception.
Definition at line 65 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandlerTest\provideBatchRecords(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testAcceptedLevelApi(), Monolog\Handler\Slack\SlackRecordTest\testContextHasException(), Monolog\Handler\HipChatHandlerTest\testCreateWithTooLongNameV2(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfEmptyLog(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfLogTooOld(), Monolog\Handler\DeduplicationHandlerTest\testFlushSkipsIfLogExists(), Monolog\Formatter\ChromePHPFormatterTest\testFormatWithFileAndLine(), Monolog\Handler\DeduplicationHandlerTest\testGcOldLogs(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\HipChatHandlerTest\testRoomSpaces(), Monolog\Handler\LogEntriesHandlerTest\testWriteContent(), Monolog\Handler\InsightOpsHandlerTest\testWriteContent(), Monolog\Handler\SlackHandlerTest\testWriteContent(), Monolog\Handler\SlackHandlerTest\testWriteContentUsesFormatterIfProvided(), Monolog\Handler\HipChatHandlerTest\testWriteContentV1WithoutName(), Monolog\Handler\HipChatHandlerTest\testWriteContentV2WithoutName(), Monolog\Handler\SlackHandlerTest\testWriteContentWithEmoji(), Monolog\Handler\SlackHandlerTest\testWriteContentWithPlainTextMessage(), Monolog\Handler\HipChatHandlerTest\testWriteCustomHostHeader(), Monolog\Handler\HipChatHandlerTest\testWriteHeader(), Monolog\Handler\PushoverHandlerTest\testWriteHeader(), Monolog\Handler\FlowdockHandlerTest\testWriteHeader(), Monolog\Handler\SlackHandlerTest\testWriteHeader(), Monolog\Handler\HipChatHandlerTest\testWriteTruncatesLongMessage(), Monolog\Handler\HipChatHandlerTest\testWriteV2(), Monolog\Handler\HipChatHandlerTest\testWriteV2Notify(), Monolog\Handler\PushoverHandlerTest\testWriteWithComplexMessage(), Monolog\Handler\HipChatHandlerTest\testWriteWithComplexMessage(), Monolog\Handler\PushoverHandlerTest\testWriteWithComplexTitle(), Monolog\Handler\PushoverHandlerTest\testWriteWithHighPriority(), and Monolog\Handler\PushoverHandlerTest\testWriteWithTooLongMessage().
const Monolog\Logger::DEBUG = 100 |
Detailed debug information.
Definition at line 33 of file Logger.php.
Referenced by Monolog\Handler\DeduplicationHandler\__construct(), Monolog\Handler\InsightOpsHandlerTest\createHandler(), Monolog\Handler\LogEntriesHandlerTest\createHandler(), Monolog\Handler\FlowdockHandlerTest\createHandler(), Monolog\Handler\RollbarHandlerTest\createHandler(), Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Handler\HipChatHandlerTest\createHandler(), Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandler\getAlertColor(), Monolog\Handler\HipChatHandlerTest\provideBatchRecords(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\BrowserConsoleHandlerTest\testAutolabel(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategyWithPsrLevels(), Monolog\Handler\FirePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\ChromePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\BrowserConsoleHandlerTest\testConcurrentHandlers(), Monolog\Handler\SyslogHandlerTest\testConstruct(), Monolog\Handler\SlackbotHandlerTest\testConstructorFull(), Monolog\Handler\SlackWebhookHandlerTest\testConstructorFull(), Monolog\Handler\FleepHookHandlerTest\testConstructorSetsExpectedDefaults(), Monolog\Handler\BrowserConsoleHandlerTest\testContext(), Monolog\Handler\GelfHandlerTest\testDebug(), Monolog\Handler\GelfHandlerLegacyTest\testDebug(), Monolog\Handler\RavenHandlerTest\testDebug(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategyWithPsrLevel(), Monolog\Handler\BrowserConsoleHandlerTest\testEscaping(), Monolog\Handler\RollbarHandlerTest\testExceptionLogLevel(), Monolog\Handler\BufferHandlerTest\testFlush(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfAllRecordsUnderTrigger(), Monolog\Formatter\FlowdockFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatchNewlines(), Monolog\Formatter\ChromePHPFormatterTest\testFormatWithoutContext(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandle(), Monolog\Handler\GroupHandlerTest\testHandle(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleBatch(), Monolog\Handler\GroupHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatchDoNothingIfRecordsAreBelowLevel(), Monolog\Handler\MailHandlerTest\testHandleBatchNotSendsMailIfMessagesAreBelowLevel(), Monolog\Handler\RavenHandlerTest\testHandleBatchPicksProperMessage(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleBatchUsesProcessors(), Monolog\Handler\GroupHandlerTest\testHandleBatchUsesProcessors(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleBubbling(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimit(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBufferLimit(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimitWithFlushOnOverflow(), Monolog\Handler\BufferHandlerTest\testHandleBuffers(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBuffers(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleIsFalseWhenNotHandled(), Monolog\Handler\BufferHandlerTest\testHandleLevel(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleLowerLevelMessage(), Monolog\Handler\NullHandlerTest\testHandleLowerLevelRecord(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleNotBubbling(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterReset(), Monolog\Handler\FleepHookHandlerTest\testHandlerUsesLineFormatterWhichIgnoresEmptyArrays(), Monolog\Handler\AbstractHandlerTest\testHandlesPsrStyleLevels(), Monolog\Handler\FingersCrossedHandlerTest\testHandleStopsBufferingAfterTrigger(), Monolog\Handler\FilterHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithCallback(), Monolog\Handler\FilterHandlerTest\testHandleWithCallback(), Monolog\Handler\FirePHPHandlerTest\testHeaders(), Monolog\Handler\ChromePHPHandlerTest\testHeaders(), Monolog\Handler\ChromePHPHandlerTest\testHeadersOverflow(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\AbstractHandlerTest\testIsHandling(), Monolog\Handler\GroupHandlerTest\testIsHandling(), Monolog\Handler\WhatFailureGroupHandlerTest\testIsHandling(), Monolog\Handler\FingersCrossedHandlerTest\testIsHandlingAlways(), Monolog\Handler\Slack\SlackRecordTest\testMapsLevelToColorAttachmentColor(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCreationIsLazyWhenUsingCallback(), Monolog\Handler\FingersCrossedHandlerTest\testOverrideActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testPassthruOnClose(), Monolog\Handler\RedisHandlerTest\testPredisHandleCapped(), Monolog\Handler\BufferHandlerTest\testPropagatesRecordsAtEndOfRequest(), Monolog\Handler\FingersCrossedHandlerTest\testPsrLevelPassthruOnClose(), Monolog\Handler\RedisHandlerTest\testRedisHandleCapped(), Monolog\Handler\ErrorLogHandlerTest\testShouldLogMessagesUsingErrorLogFuncion(), Monolog\Handler\BrowserConsoleHandlerTest\testStyling(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeInjectedFromtheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeOverriddenFromEachLog(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeInjectedFromTheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeOverriddenFromEachLog(), and Monolog\Handler\StreamHandlerTest\testWriteLocking().
const Monolog\Logger::EMERGENCY = 600 |
Urgent alert.
Definition at line 78 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testAcceptedLevelApi(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FilterHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\Slack\SlackRecordTest\testMapsLevelToColorAttachmentColor(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCanBeCustomizedGivenLoggedData(), Monolog\Handler\SwiftMailerHandlerTest\testMessageSubjectFormatting(), Monolog\Handler\PushoverHandlerTest\testWriteHeader(), Monolog\Handler\PushoverHandlerTest\testWriteToMultipleUsers(), Monolog\Handler\PushoverHandlerTest\testWriteWithComplexMessage(), Monolog\Handler\PushoverHandlerTest\testWriteWithEmergencyPriority(), and Monolog\Handler\PushoverHandlerTest\testWriteWithTooLongMessage().
const Monolog\Logger::ERROR = 400 |
Runtime errors.
Definition at line 58 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandler\getAlertColor(), Monolog\Handler\Slack\SlackRecord\getAttachmentColor(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testAcceptedLevelApi(), Monolog\Handler\Slack\SlackRecordTest\testAddsLongAttachmentWithContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsLongAttachmentWithoutContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsShortAttachmentWithContextAndExtra(), Monolog\Handler\Slack\SlackRecordTest\testAddsShortAttachmentWithoutContextAndExtra(), Monolog\Formatter\WildfireFormatterTest\testBatchFormatThrowException(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategy(), Monolog\Handler\AbstractHandlerTest\testConstructAndGetSet(), Monolog\Formatter\WildfireFormatterTest\testDefaultFormat(), Monolog\Formatter\ChromePHPFormatterTest\testDefaultFormat(), Monolog\Formatter\GelfMessageFormatterTest\testDefaultFormatter(), Monolog\Formatter\LogstashFormatterTest\testDefaultFormatter(), Monolog\Formatter\LogstashFormatterTest\testDefaultFormatterV1(), Monolog\Handler\RavenHandlerTest\testException(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfEmptyLog(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfLogTooOld(), Monolog\Handler\DeduplicationHandlerTest\testFlushSkipsIfLogExists(), Monolog\Formatter\ElasticaFormatterTest\testFormat(), Monolog\Formatter\GelfMessageFormatterTest\testFormatInvalidFails(), Monolog\Formatter\LogstashFormatterTest\testFormatWithApplicationName(), Monolog\Formatter\LogstashFormatterTest\testFormatWithApplicationNameV1(), Monolog\Formatter\LogstashFormatterTest\testFormatWithContext(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithContext(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithContextContainingException(), Monolog\Formatter\LogstashFormatterTest\testFormatWithContextV1(), Monolog\Formatter\LogstashFormatterTest\testFormatWithExtra(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithExtra(), Monolog\Formatter\LogstashFormatterTest\testFormatWithExtraV1(), Monolog\Formatter\WildfireFormatterTest\testFormatWithFileAndLine(), Monolog\Formatter\LogstashFormatterTest\testFormatWithFileAndLine(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithFileAndLine(), Monolog\Formatter\LogstashFormatterTest\testFormatWithFileAndLineV1(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithLargeData(), Monolog\Formatter\LogstashFormatterTest\testFormatWithLatin9Data(), Monolog\Formatter\WildfireFormatterTest\testFormatWithoutContext(), Monolog\Formatter\FluentdFormatterTest\testFormatWithTag(), Monolog\Formatter\GelfMessageFormatterTest\testFormatWithUnlimitedLength(), Monolog\Handler\DeduplicationHandlerTest\testGcOldLogs(), Monolog\Handler\ElasticSearchHandlerTest\testHandle(), Monolog\Handler\RavenHandlerTest\testHandleBatchDoNothingIfRecordsAreBelowLevel(), Monolog\Handler\MailHandlerTest\testHandleBatchNotSendsMailIfMessagesAreBelowLevel(), Monolog\Handler\RavenHandlerTest\testHandleBatchPicksProperMessage(), Monolog\Handler\ElasticSearchHandlerTest\testHandleIntegration(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\GroupHandlerTest\testIsHandling(), Monolog\Handler\WhatFailureGroupHandlerTest\testIsHandling(), Monolog\Handler\FingersCrossedHandlerTest\testIsHandlingAlways(), Monolog\Handler\Slack\SlackRecordTest\testMapsLevelToColorAttachmentColor(), Monolog\Handler\NativeMailerHandlerTest\testMessageSubjectFormatting(), Monolog\Handler\NativeMailerHandlerTest\testSend(), Monolog\Handler\ErrorLogHandlerTest\testShouldLogMessagesUsingErrorLogFuncion(), Monolog\Formatter\WildfireFormatterTest\testTableFormat(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeInjectedFromtheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameCanBeOverriddenFromEachLog(), Monolog\Handler\NewRelicHandlerTest\testTheAppNameIsNullByDefault(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddContextParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanAddExtraParamsToTheNewRelicTrace(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanHandleTheRecord(), Monolog\Handler\NewRelicHandlerTest\testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter(), Monolog\Handler\NewRelicHandlerTest\testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeInjectedFromTheConstructor(), Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameCanBeOverriddenFromEachLog(), and Monolog\Handler\NewRelicHandlerTest\testTheTransactionNameIsNullByDefault().
const Monolog\Logger::INFO = 200 |
Interesting events.
Examples: User logs in, SQL logs.
Definition at line 40 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandler\getAlertColor(), Monolog\Handler\Slack\SlackRecord\getAttachmentColor(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testAcceptedLevelApi(), Monolog\Formatter\ChromePHPFormatterTest\testBatchFormatThrowException(), Monolog\Handler\RavenHandlerTest\testExtraParameters(), Monolog\Handler\RavenHandlerTest\testFingerprint(), Monolog\Handler\BufferHandlerTest\testFlush(), Monolog\Handler\DeduplicationHandlerTest\testFlushPassthruIfAllRecordsUnderTrigger(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandle(), Monolog\Handler\GroupHandlerTest\testHandle(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleBatch(), Monolog\Handler\GroupHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatchDoNothingIfRecordsAreBelowLevel(), Monolog\Handler\MailHandlerTest\testHandleBatchNotSendsMailIfMessagesAreBelowLevel(), Monolog\Handler\RavenHandlerTest\testHandleBatchPicksProperMessage(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleBatchUsesProcessors(), Monolog\Handler\GroupHandlerTest\testHandleBatchUsesProcessors(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimit(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBufferLimit(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimitWithFlushOnOverflow(), Monolog\Handler\BufferHandlerTest\testHandleBuffers(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBuffers(), Monolog\Handler\BufferHandlerTest\testHandleLevel(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterReset(), Monolog\Handler\FilterHandlerTest\testHandleRespectsBubble(), Monolog\Handler\FingersCrossedHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithCallback(), Monolog\Handler\FilterHandlerTest\testHandleWithCallback(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\Slack\SlackRecordTest\testMapsLevelToColorAttachmentColor(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCreationIsLazyWhenUsingCallback(), Monolog\Handler\FingersCrossedHandlerTest\testOverrideActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testPassthruOnClose(), Monolog\Handler\FingersCrossedHandlerTest\testPsrLevelPassthruOnClose(), Monolog\Handler\RavenHandlerTest\testRelease(), Monolog\Handler\RavenHandlerTest\testTag(), and Monolog\Handler\RavenHandlerTest\testUserContext().
const Monolog\Logger::NOTICE = 250 |
Uncommon events.
Definition at line 45 of file Logger.php.
Referenced by Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandlerTest\provideBatchRecords(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FilterHandlerTest\testHandleRespectsBubble(), Monolog\Handler\FilterHandlerTest\testHandleWithCallback(), Monolog\Handler\FilterHandlerTest\testIsHandling(), and Monolog\Handler\PHPConsoleHandler\write().
const Monolog\Logger::WARNING = 300 |
Exceptional occurrences that are not errors.
Examples: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Definition at line 53 of file Logger.php.
Referenced by Monolog\Handler\FingersCrossedHandler\__construct(), Monolog\Handler\Slack\SlackRecordTest\dataGetAttachmentColor(), Monolog\Handler\HipChatHandler\getAlertColor(), Monolog\Handler\Slack\SlackRecord\getAttachmentColor(), Monolog\Handler\SyslogUdpHandlerTest\getRecordWithMessage(), Monolog\Handler\HipChatHandlerTest\provideBatchRecords(), Monolog\Handler\SlackHandlerTest\provideLevelColors(), Monolog\Handler\HipChatHandlerTest\provideLevelColors(), Monolog\Handler\ChromePHPHandler\send(), Monolog\Handler\Slack\SlackRecordTest\testAddsFallbackAndTextToAttachment(), Monolog\Formatter\ChromePHPFormatterTest\testBatchFormatThrowException(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testChannelLevelActivationStrategyWithPsrLevels(), Monolog\Handler\StreamHandlerTest\testClose(), Monolog\Handler\FirePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\ChromePHPHandlerTest\testConcurrentHandlers(), Monolog\Handler\AbstractHandlerTest\testConstructAndGetSet(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategy(), Monolog\Handler\FingersCrossedHandlerTest\testErrorLevelActivationStrategyWithPsrLevel(), Monolog\Handler\Slack\SlackRecordTest\testExcludeExtraAndContextFields(), Monolog\Formatter\FluentdFormatterTest\testFormat(), Monolog\Formatter\FlowdockFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatch(), Monolog\Formatter\JsonFormatterTest\testFormatBatchNewlines(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthArray(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthArrayInfiniteNesting(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthException(), Monolog\Formatter\MongoDBFormatterTest\testFormatDepthObjects(), Monolog\Handler\CouchDBHandlerTest\testHandle(), Monolog\Handler\DoctrineCouchDBHandlerTest\testHandle(), Monolog\Handler\MongoDBHandlerTest\testHandle(), Monolog\Handler\AmqpHandlerTest\testHandleAmqpExt(), Monolog\Handler\RavenHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatchPicksProperMessage(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimit(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBufferLimit(), Monolog\Handler\BufferHandlerTest\testHandleBufferLimitWithFlushOnOverflow(), Monolog\Handler\FingersCrossedHandlerTest\testHandleBuffers(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleException(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleIsFalseWhenNotHandled(), Monolog\Handler\BufferHandlerTest\testHandleLevel(), Monolog\Handler\AbstractProcessingHandlerTest\testHandleLowerLevelMessage(), Monolog\Handler\NullHandlerTest\testHandleLowerLevelRecord(), Monolog\Handler\AmqpHandlerTest\testHandlePhpAmqpLib(), Monolog\Handler\FilterHandlerTest\testHandleProcessOnlyNeededLevels(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled(), Monolog\Handler\FingersCrossedHandlerTest\testHandleResetBufferingAfterReset(), Monolog\Handler\FilterHandlerTest\testHandleRespectsBubble(), Monolog\Handler\FingersCrossedHandlerTest\testHandleStopsBufferingAfterTrigger(), Monolog\Handler\WhatFailureGroupHandlerTest\testHandleUsesProcessors(), Monolog\Handler\GroupHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FilterHandlerTest\testHandleUsesProcessors(), Monolog\Handler\BufferHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleUsesProcessors(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithBadCallbackThrowsException(), Monolog\Handler\FilterHandlerTest\testHandleWithBadCallbackThrowsException(), Monolog\Handler\FingersCrossedHandlerTest\testHandleWithCallback(), Monolog\Handler\FirePHPHandlerTest\testHeaders(), Monolog\Handler\ChromePHPHandlerTest\testHeaders(), Monolog\Handler\ChromePHPHandlerTest\testHeadersOverflow(), Monolog\Handler\GelfHandlerLegacyTest\testInjectedGelfMessageFormatter(), Monolog\Handler\GelfHandlerTest\testInjectedGelfMessageFormatter(), Monolog\Handler\FilterHandlerTest\testIsHandling(), Monolog\Handler\AbstractHandlerTest\testIsHandling(), Monolog\Handler\WhatFailureGroupHandlerTest\testIsHandling(), Monolog\Handler\GroupHandlerTest\testIsHandling(), Monolog\Handler\Slack\SlackRecordTest\testMapsLevelToColorAttachmentColor(), Monolog\Handler\FingersCrossedHandlerTest\testPassthruOnClose(), Monolog\Handler\RedisHandlerTest\testPredisHandle(), Monolog\Handler\RedisHandlerTest\testPredisHandleCapped(), Monolog\Handler\BufferHandlerTest\testPropagatesRecordsAtEndOfRequest(), Monolog\Handler\FingersCrossedHandlerTest\testPsrLevelPassthruOnClose(), Monolog\Formatter\MongoDBFormatterTest\testRecursiveFormat(), Monolog\Handler\RedisHandlerTest\testRedisHandle(), Monolog\Handler\RedisHandlerTest\testRedisHandleCapped(), Monolog\Formatter\MongoDBFormatterTest\testSimpleFormat(), Monolog\Handler\Slack\SlackRecordTest\testTextEqualsFormatterOutput(), Monolog\Handler\Slack\SlackRecordTest\testTextEqualsMessageIfNoAttachment(), Monolog\Handler\RavenHandlerTest\testWarning(), Monolog\Handler\GelfHandlerLegacyTest\testWarning(), Monolog\Handler\GelfHandlerTest\testWarning(), Monolog\Handler\StreamHandlerTest\testWrite(), and Monolog\Handler\SocketHandlerTest\writeRecord().