Logging functions; also handles CLI output
The logger will automatically open and close its log file without any extra setup by the user
dolog('This is an info message');
dolog('This is an ERROR',LOG_ERROR);
dolog('This is a warning',LOG_WARN);
The log package ships with the following configuration
$config['log']['level'] = LOG_INFO;
$config['log']['file'] = false;
$config['log']['format'] = '[%s] %s - %s'; //%s - date %s - level %s - message
$config['log']['date_format'] = 'm/d/Y g:i:sA';
This will log the desired message at the desired level to the configured log file.
Language | php |
Version | 0.0.0 |
Git URL | https://github.com/nullivex/func-log |
License | GPL-3.0 |
Description | Logging functions; also handles CLI output |
Keywords |