OpenTelemetry PHP

NoopLogger
in package
implements LoggerInterface uses LoggerTrait

Table of Contents

Interfaces

LoggerInterface

Methods

emit()  : void
getInstance()  : self
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.
log()  : void

Methods

getInstance()

public static getInstance() : self
Return values
self

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
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