ResourceInfoFactory
in package
uses
LogsMessagesTrait
Table of Contents
Properties
- $emptyResource : ResourceInfo|null
Methods
- defaultResource() : ResourceInfo
- emptyResource() : ResourceInfo
- mandatoryResource() : ResourceInfo
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- doLog() : void
- Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
- shouldLog() : bool
Properties
$emptyResource
private
static ResourceInfo|null
$emptyResource
= null
Methods
defaultResource()
public
static defaultResource() : ResourceInfo
Return values
ResourceInfoemptyResource()
public
static emptyResource() : ResourceInfo
Return values
ResourceInfomandatoryResource()
public
static mandatoryResource() : ResourceInfo
Return values
ResourceInfologDebug()
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()
Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
private
static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed>
shouldLog()
private
static shouldLog(string $level) : bool
Parameters
- $level : string