A logger which outputs messages into a PDO instance using prepared statements.

If the logger is used without changing the static $insert sql insert string to create logs, a table is required. The table (or insert command if changed) should contain the following columns: The default database table called is 'log_messages' but can be changed by changing the static $insert field.

level   - varchar(255)
message - text
time    - datetime

The insert call will use the following bound parameters:

level   - string
message - string
time    - string

Type hierarchy

psr/log dev-master 1.1.2
View more packages
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
goragod/kotchasan dev-master
kaidenchen/yii2-resque-enhance dev-master 1.0 v0.2
lionsad/service_container 1.0.0-beta5
psr-php7/log dev-master 1.0.0

Class usage:

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