Documentation

PrefixedLogger extends SimpleLogger
in package

Table of Contents

$delegate  : Logger
$prefix  : string
__construct()  : mixed
alert()  : void
Action must be taken immediately
critical()  : void
Critical conditions
debug()  : void
Detailed debug information.
emergency()  : void
System is unusable
error()  : void
Runtime errors that do not require immediate action but should typically be logged and monitored.
getPrefix()  : string
info()  : void
Interesting events.
log()  : void
Logs with an arbitrary level.
logException()  : void
Logs a Throwable object
notice()  : void
Normal but significant events.
setPrefix()  : void
warning()  : void
Exceptional occurrences that are not errors.

Properties

Methods

__construct()

public __construct(Logger $delegate, string $prefix) : mixed
Parameters
$delegate : Logger
$prefix : string
Return values
mixed

alert()

Action must be taken immediately

public alert(mixed $message) : void
Parameters
$message : mixed
Return values
void

critical()

Critical conditions

public critical(mixed $message) : void
Parameters
$message : mixed
Return values
void

debug()

Detailed debug information.

public debug(mixed $message) : void
Parameters
$message : mixed
Return values
void

emergency()

System is unusable

public emergency(mixed $message) : void
Parameters
$message : mixed
Return values
void

error()

Runtime errors that do not require immediate action but should typically be logged and monitored.

public error(mixed $message) : void
Parameters
$message : mixed
Return values
void

getPrefix()

public getPrefix() : string
Return values
string

info()

Interesting events.

public info(mixed $message) : void
Parameters
$message : mixed
Return values
void

log()

Logs with an arbitrary level.

public log(mixed $level, mixed $message) : void
Parameters
$level : mixed
$message : mixed
Return values
void

logException()

Logs a Throwable object

public logException(Throwable $e[, mixed $trace = null ]) : void
Parameters
$e : Throwable
$trace : mixed = null
Return values
void

notice()

Normal but significant events.

public notice(mixed $message) : void
Parameters
$message : mixed
Return values
void

setPrefix()

public setPrefix(string $prefix) : void
Parameters
$prefix : string
Return values
void

warning()

Exceptional occurrences that are not errors.

public warning(mixed $message) : void

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters
$message : mixed
Return values
void

Search results