-
Notifications
You must be signed in to change notification settings - Fork 256
Configuring Logging
effgarces edited this page Feb 7, 2022
·
1 revision
Logging can be helpful for troubleshooting issues or keeping a log of activity.
LibreBooking uses the log4php library to log multiple levels of information categorized into either application or database logs. By default, logging is turned OFF.
- Rename /config/log4php.config.dist.xml to /config/log4php.config.xml
- To allow application logging, the PHP account requires write access (0755) to your configured log directory.
- Logging is configured in /config/log4php.config.xml
- For Windows, set the file parameter to something like
- For Unix, set the file parameter to something like
- Logging is controlled by changing the of each
- Levels used by LibreBooking are OFF, DEBUG, ERROR. For normal operation, ERROR is appropriate. If trace logs are needed, DEBUG is appropriate.
- To turn on application logging, change the to an appropriate level for either the default or sql loggers. For example,
- For more information on logging configuration, visit log4php