IHTTPLogger
extends
ILogger
in
Tags
Table of Contents
Constants
- LEVEL_ALERT = 1
- Action must be taken immediately. A condition that should be corrected immediately, such as a corrupted system database.
- LEVEL_CRITICAL = 2
- Critical conditions, such as hard device errors.
- LEVEL_DEBUG = 7
- Debug-level messages. Messages that contain information normally of use only when debugging a program.
- LEVEL_EMERGENCY = 0
- System is unusable. A panic condition
- LEVEL_ERROR = 3
- Error conditions.
- LEVEL_INFO = 6
- Informational messages.
- LEVEL_NOTICE = 5
- Normal but significant conditions. Conditions that are not error conditions, but that may require special handling.
- LEVEL_WARNING = 4
- Warning conditions.
Methods
- alert() : null
- Action must be taken immediately. Example: Entire website down, database unavailable, etc.
- critical() : null
- Critical conditions. Example: Application component unavailable, unexpected exception.
- debug() : null
- Detailed debug information.
- emergency() : null
- System is unusable.
- error() : null
- Runtime errors that do not require immediate action but should typically be logged and monitored.
- getLogger() : ILogger
- info() : null
- Interesting events. Example: User logs in, SQL logs.
- log() : null
- Logs with an arbitrary level.
- notice() : null
- Normal but significant events.
- warning() : null
- Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Constants
LEVEL_ALERT
Action must be taken immediately. A condition that should be corrected immediately, such as a corrupted system database.
public
int
LEVEL_ALERT
= 1
Tags
LEVEL_CRITICAL
Critical conditions, such as hard device errors.
public
int
LEVEL_CRITICAL
= 2
Tags
LEVEL_DEBUG
Debug-level messages. Messages that contain information normally of use only when debugging a program.
public
int
LEVEL_DEBUG
= 7
Tags
LEVEL_EMERGENCY
System is unusable. A panic condition
public
int
LEVEL_EMERGENCY
= 0
Tags
LEVEL_ERROR
Error conditions.
public
int
LEVEL_ERROR
= 3
Tags
LEVEL_INFO
Informational messages.
public
int
LEVEL_INFO
= 6
Tags
LEVEL_NOTICE
Normal but significant conditions. Conditions that are not error conditions, but that may require special handling.
public
int
LEVEL_NOTICE
= 5
Tags
LEVEL_WARNING
Warning conditions.
public
int
LEVEL_WARNING
= 4
Tags
Methods
alert()
Action must be taken immediately. Example: Entire website down, database unavailable, etc.
public
alert(string $message[, array<string|int, mixed> $context = array() ]) : null
This should trigger the SMS alerts and wake you up.
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullcritical()
Critical conditions. Example: Application component unavailable, unexpected exception.
public
critical(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Return values
nulldebug()
Detailed debug information.
public
debug(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullemergency()
System is unusable.
public
emergency(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullerror()
Runtime errors that do not require immediate action but should typically be logged and monitored.
public
error(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullgetLogger()
public
static getLogger([string|null $name = null ]) : ILogger
Parameters
- $name : string|null = null
Return values
ILoggerinfo()
Interesting events. Example: User logs in, SQL logs.
public
info(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nulllog()
Logs with an arbitrary level.
public
log(mixed $level, string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $level : mixed
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullnotice()
Normal but significant events.
public
notice(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()
Tags
Return values
nullwarning()
Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public
warning(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = array()