Documentation

ILogger

Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

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

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
see
http://www.php-fig.org/psr/psr-3/
Return values
null

critical()

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
null

debug()

Detailed debug information.

public debug(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
$message : string
$context : array<string|int, mixed> = array()
Tags
see
http://www.php-fig.org/psr/psr-3/
Return values
null

emergency()

System is unusable.

public emergency(string $message[, array<string|int, mixed> $context = array() ]) : null
Parameters
$message : string
$context : array<string|int, mixed> = array()
Tags
see
http://www.php-fig.org/psr/psr-3/
Return values
null

error()

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
see
http://www.php-fig.org/psr/psr-3/
Return values
null

info()

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
see
http://www.php-fig.org/psr/psr-3/
Return values
null

log()

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
see
http://www.php-fig.org/psr/psr-3/
Return values
null

notice()

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
see
http://www.php-fig.org/psr/psr-3/
Return values
null

warning()

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()
Tags
see
http://www.php-fig.org/psr/psr-3/
Return values
null

        
On this page

Search results