Download the PHP package openlss/func-log without Composer
On this page you can find all versions of the php package openlss/func-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openlss/func-log
More information about openlss/func-log
Files in openlss/func-log
Download openlss/func-log
More information about openlss/func-log
Files in openlss/func-log
Vendor openlss
Package func-log
Short Description Logging functions, also handles CLI output
License LGPL-3.0+
Homepage http://openlss.org
Package func-log
Short Description Logging functions, also handles CLI output
License LGPL-3.0+
Homepage http://openlss.org
Please rate this library. Is it a good library?
Informations about the package func-log
openlss/func-log
Logging functions; also handles CLI output
The logger will automatically open and close its log file without any extra setup by the user
Usage
COnfiguration
The log package ships with the following configuration
- $config['log']['level'] The level to log at, if a message is higher than the level it will be discarded
- $config['log']['file'] The file to log to, this must be writable by the PHP program
- $config['log']['format'] A sprintf style format of the log message
- %s Log level
- %s Date of the message
- %s The actual message
- $config['log']['date_format'] A date format compatible with PHP's date() function
Reference
(int bool) dolog($msg,$level=LOG_INFO)
This will log the desired message at the desired level to the configured log file.
- $msg The message to be logged
- $level The level to be logged
- LOG_ERROR Error message
- LOG_WARN Warning message
- LOG_NOTICE Notice message
- LOG_INFO Informational message
- LOG_DEBUG Debugging information
All versions of func-log with dependencies
PHP Build Version
Package Version
The package openlss/func-log contains the following files
Loading the files please wait ....