Analyzing class Piwik\Log
Logging utility class.
Log entries are made with a message and log level. The logging utility will tag each log entry with the name of the plugin that's doing the logging. If no plugin is found, the name of the current class is used.
You can log messages using one of the public static functions (eg, 'error', 'warning', 'info', etc.).
Currently, Piwik supports the following logging backends:
- screen: logging to the screen
- file: logging to a file
- database: logging to Piwik's MySQL database
Messages logged in the console will always be logged to the console output.
The logging utility can be configured by manipulating the INI config options in the
The following configuration options can be set:
log_writers: This is an array of log writer IDs. The three log writers provided by Piwik core are file, screen and database. You can get more by installing plugins. The default value is screen.
log_level: The current log level. Can be ERROR, WARN, INFO, DEBUG, or VERBOSE. Log entries made with a log level that is as or more severe than the current log level will be outputted. Others will be ignored. The default level is WARN.
logger_file_path: For the file log writer, specifies the path to the log file to log to or a path to a directory to store logs in. If a directory, the file name is piwik.log. Can be relative to Piwik's root dir or an absolute path. Defaults to tmp/logs.
piwik/piwik 15477.x-dev 15414.x-dev 15307.x-dev 6265.x-dev 15534.x-dev 14944.x-dev 14939.x-dev 14054.x-dev 13835.x-dev dev-master 15598.x-dev 15545.x-dev 15240.x-dev 15176.x-dev 14934.x-dev 14744.x-dev 14612.x-dev 14428.x-dev 14395.x-dev 14362.x-dev 14267.x-dev 14223.x-dev 14208.x-dev 14188.x-dev 13989.x-dev 13880.x-dev 13383.x-dev 13325.x-dev 13272.x-dev 13070.x-dev 12072.x-dev 11942.x-dev 11058.x-dev 10801.x-dev 7105.x-dev 6559.x-dev 5711.x-dev 539.x-dev 3.13.3 2.18.0