OpenTelemetry PHP

LoggerAwareTrait

Table of Contents

Properties

$defaultLogLevel  : string

Methods

setDefaultLogLevel()  : void
getLogger()  : LoggerInterface
log()  : void

Properties

$defaultLogLevel

private string $defaultLogLevel = \Psr\Log\LogLevel::INFO

Methods

setDefaultLogLevel()

public setDefaultLogLevel(string $logLevel) : void
Parameters
$logLevel : string

getLogger()

protected getLogger() : LoggerInterface
Return values
LoggerInterface

log()

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

        
On this page

Search results