Globals
in package
uses
LogsMessagesTrait
FinalYes
Provides access to the globally configured instrumentation instances.
Table of Contents
Properties
- $eventLoggerProvider : EventLoggerProviderInterface
- $globals : self|null
- $initializers : array<string|int, Closure>
- $loggerProvider : LoggerProviderInterface
- $meterProvider : MeterProviderInterface
- $propagator : TextMapPropagatorInterface
- $tracerProvider : TracerProviderInterface
Methods
- __construct() : mixed
- eventLoggerProvider() : EventLoggerProviderInterface
- loggerProvider() : LoggerProviderInterface
- meterProvider() : MeterProviderInterface
- propagator() : TextMapPropagatorInterface
- tracerProvider() : TracerProviderInterface
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- doLog() : void
- globals() : self
- shouldLog() : bool
Properties
$eventLoggerProvider read-only
private
EventLoggerProviderInterface
$eventLoggerProvider
$globals
private
static self|null
$globals
= null
$initializers
private
static array<string|int, Closure>
$initializers
= []
$loggerProvider read-only
private
LoggerProviderInterface
$loggerProvider
$meterProvider read-only
private
MeterProviderInterface
$meterProvider
$propagator read-only
private
TextMapPropagatorInterface
$propagator
$tracerProvider read-only
private
TracerProviderInterface
$tracerProvider
Methods
__construct()
public
__construct(TracerProviderInterface $tracerProvider, MeterProviderInterface $meterProvider, LoggerProviderInterface $loggerProvider, EventLoggerProviderInterface $eventLoggerProvider, TextMapPropagatorInterface $propagator) : mixed
Parameters
- $tracerProvider : TracerProviderInterface
- $meterProvider : MeterProviderInterface
- $loggerProvider : LoggerProviderInterface
- $eventLoggerProvider : EventLoggerProviderInterface
- $propagator : TextMapPropagatorInterface
eventLoggerProvider()
public
static eventLoggerProvider() : EventLoggerProviderInterface
Return values
EventLoggerProviderInterfaceloggerProvider()
public
static loggerProvider() : LoggerProviderInterface
Return values
LoggerProviderInterfacemeterProvider()
public
static meterProvider() : MeterProviderInterface
Return values
MeterProviderInterfacepropagator()
public
static propagator() : TextMapPropagatorInterface
Return values
TextMapPropagatorInterfacetracerProvider()
public
static tracerProvider() : TracerProviderInterface
Return values
TracerProviderInterfacelogDebug()
protected
static logDebug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logError()
protected
static logError(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logInfo()
protected
static logInfo(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logNotice()
protected
static logNotice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logWarning()
protected
static logWarning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
doLog()
private
static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed>
globals()
private
static globals() : self
Tags
Return values
selfshouldLog()
private
static shouldLog(string $level) : bool
Parameters
- $level : string