OpenTelemetry PHP

NoopLogger
in package
implements LoggerInterface uses LoggerTrait

Table of Contents

Interfaces

LoggerInterface

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
codeCoverageIgnore

getInstance()

public static getInstance() : self
Return values
self

isEnabled()

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
bool

log()

public log(mixed $level, mixed $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$level : mixed
$message : mixed
$context : array<string|int, mixed> = []
Tags
codeCoverageIgnore

        
On this page

Search results