Log
in
Table of Contents
- alert() : void
- Log an alert message to the logs.
- critical() : void
- Log a critical message to the logs.
- debug() : void
- Log a debug message to the logs.
- error() : void
- Log an error message to the logs.
- info() : void
- Log an informational message to the logs.
- log() : void
- Log a message to the logs.
- notice() : void
- Log a notice to the logs.
- useDailyFiles() : void
- Register a daily file log handler.
- useFiles() : void
- Register a file log handler.
- warning() : void
- Log a warning message to the logs.
Methods
alert()
Log an alert message to the logs.
public
alert(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —critical()
Log a critical message to the logs.
public
critical(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —debug()
Log a debug message to the logs.
public
debug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —error()
Log an error message to the logs.
public
error(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —info()
Log an informational message to the logs.
public
info(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —log()
Log a message to the logs.
public
log(string $level, string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —notice()
Log a notice to the logs.
public
notice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
void —useDailyFiles()
Register a daily file log handler.
public
useDailyFiles(string $path, int $days[, string $level = 'debug' ]) : void
Parameters
- $path : string
- $days : int
- $level : string = 'debug'
Return values
void —useFiles()
Register a file log handler.
public
useFiles(string $path[, string $level = 'debug' ]) : void
Parameters
- $path : string
- $level : string = 'debug'
Return values
void —warning()
Log a warning message to the logs.
public
warning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []