Description

Class Log for logging different types of application messages.

$log->notice('foo'); $log->warn('bar');

CONFIGURATION PARAMETERS (Log class)

  • loggers (array) An array of log processors. Every processor is defined in array with it's own configuration parameters, but ALL must have the following:

  • class (string) [required] The name of the log processor class. Can create multiple same instances with different config parameters.

  • levels (integer) [optional], default: -1 (for all levels) Packed integer for bitwise comparison. See the constants in this class.

Example: Log::INFO | Log::ERROR | Log::ALERT Processor with these log levels will store only info, error and warning type messages.

  • dateformat (string) [optional], default: d/m/Y H:i:s The date format for the log message.

  • timezone (string) [optional], default: UTC The desired timezone for the DateTimeZone object.

CONFIGURATION PARAMETERS (Processor class) Every processor has it's own specific parameters (with the above directives).

Type hierarchy

psr/log dev-master 1.1.4
View more packages
mrcnpdlk/imdbphp v4.1.1
psr-php7/log dev-master 1.0.0
struggle-for-php/sfp-psalm-psr-log-plugin dev-master 0.2.0
amzn/amazon-pay-sdk-php 2.x-dev
amzn/login-and-pay-with-amazon-sdk-php 2.x-dev
cyan.tseng/logger dev-master
graef685/log 4.0.0 1.1.4
imdbphp/imdbphp v4.1.1
instituteweb/typo3-cms 6.2.31
integer-net/solr-base 1.0.4
koded/logging 1.1.2

Class usage:

This class is not referred by any other class/interface/traits in packagist packages.