DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:logging

Logging

Logging Facilities

Logging facilities categorize logged Error messages. They correspond to directories in the data/log/ directory. Plugins may use their own facilities.

DokuWiki defines three logging facilities by default:

  • error - anything that should not happen and is the result of a problem with the code, environment, configuration or user interaction.
  • deprecated - logs the use of deprecated code. The stack trace should help identifying the code that needs to be updated
  • debug - messages that help during development or configuration but are usually not needed

Which facilities actually should be logged can be configured through the dontlog option.

Automatic Error Logging

DokuWiki registers error handlers that will automatically try to catch all run-away exception, errors and fatals. It will display an informatory message to the end user and log the error to the error facility.

Log Format

FIXME

Custom Logging

FIXME

devel/logging.txt · Last modified: 2022-07-31 21:59 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki