NoopLogger
in package
implements
LoggerInterface
uses
LoggerTrait
Table of Contents
Interfaces
Methods
- emit() : void
- This method should only be used when implementing a `log appender`
- getInstance() : self
- isEnabled() : bool
- Determine if the logger is enabled. Logs bridge API authors SHOULD call this method each time they are about to generate a LogRecord, to avoid performing computationally expensive work.
- log() : void
Methods
emit()
This method should only be used when implementing a `log appender`
public
emit(LogRecord $logRecord) : void
Parameters
- $logRecord : LogRecord
Tags
getInstance()
public
static getInstance() : self
Return values
selfisEnabled()
Determine if the logger is enabled. Logs bridge API authors SHOULD call this method each time they are about to generate a LogRecord, to avoid performing computationally expensive work.
public
isEnabled() : bool
Return values
boollog()
public
log(mixed $level, mixed $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $level : mixed
- $message : mixed
- $context : array<string|int, mixed> = []