FacturaScripts

Translate2Log extends MiniLog

Description of TranslateLog

Table of Contents

$i18n Translator
$channel Current channel. string
$dataLog Contains the log data. array
i18n() Translator
log() Logs with an arbitrary level. mixed
__construct() mixed
clear() Clean the log. mixed
critical() Critical conditions. mixed
debug() Detailed debug information. mixed
error() Runtime errors that do not require immediate action but should typically be logged and monitored. mixed
info() Interesting information, advices. mixed
notice() Normal but significant events. mixed
read() Returns specified level messages of this channel. array
readAll() Returns specified level messages of all channels. array
warning() Exceptional occurrences that are not errors. mixed
log() Logs with an arbitrary level. mixed

Properties

$channel

Current channel.

private string $channel

$dataLog

Contains the log data.

private static array $dataLog = []

Methods

log()

Logs with an arbitrary level.

protected log( $level : string , $message : string [, $context : array = [] ] ) : mixed
Parameters
$level : string
$message : string
$context : array = []
Return values
mixed

__construct()

public __construct( [ $channel : string = '' ] ) : mixed
Parameters
$channel : string = ''
Return values
mixed

clear()

Clean the log.

public clear( ) : mixed
Return values
mixed

critical()

Critical conditions.

public critical( $message : string [, $context : array = [] ] ) : mixed

Example: Application component unavailable, unexpected exception.

Parameters
$message : string
$context : array = []
Return values
mixed

debug()

Detailed debug information.

public debug( $message : string [, $context : array = [] ] ) : mixed
Parameters
$message : string
$context : array = []
Return values
mixed

error()

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

public error( $message : string [, $context : array = [] ] ) : mixed
Parameters
$message : string
$context : array = []
Return values
mixed

info()

Interesting information, advices.

public info( $message : string [, $context : array = [] ] ) : mixed
Parameters
$message : string
$context : array = []
Return values
mixed

notice()

Normal but significant events.

public notice( $message : string [, $context : array = [] ] ) : mixed
Parameters
$message : string
$context : array = []
Return values
mixed

read()

Returns specified level messages of this channel.

public read( [ $levels : array = self::DEFAULT_LEVELS ] ) : array
Parameters
$levels : array = self::DEFAULT_LEVELS
Return values
array

readAll()

Returns specified level messages of all channels.

public readAll( [ $levels : array = self::DEFAULT_LEVELS ] ) : array
Parameters
$levels : array = self::DEFAULT_LEVELS
Return values
array

warning()

Exceptional occurrences that are not errors.

public warning( $message : string [, $context : array = [] ] ) : mixed

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

Parameters
$message : string
$context : array = []
Return values
mixed

log()

Logs with an arbitrary level.

protected log( $level : string , $message : string [, $context : array = [] ] ) : mixed
Parameters
$level : string
$message : string
$context : array = []
Return values
mixed

Search results