LoggerInterface
in
Table of Contents
Methods
- emit() : void
- isEnabled() : bool
- Determine if the logger is enabled. Instrumentation authors SHOULD call this method each time they emit a LogRecord, to ensure they have the most up-to-date response.
Methods
emit()
public
emit(LogRecord $logRecord) : void
Parameters
- $logRecord : LogRecord
isEnabled()
Determine if the logger is enabled. Instrumentation authors SHOULD call this method each time they emit a LogRecord, to ensure they have the most up-to-date response.
public
isEnabled([ContextInterface|null $context = null ][, int|null $severityNumber = null ]) : bool
Parameters
- $context : ContextInterface|null = null
- $severityNumber : int|null = null