OpenTelemetry PHP

LoggerInterface

Table of Contents

Methods

emit()  : void
This method should only be used when implementing a `log appender`
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.

Methods

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
Tags
experimental
Return values
bool

        
On this page

Search results