jreuteler / silverstripe-db-log
Adds a database logger and log-search/filtering in the backend.
Package info
Type:silverstripe-module
pkg:composer/jreuteler/silverstripe-db-log
1.0.1-alpha
2016-12-03 22:27 UTC
This package is not auto-updated.
Last update: 2026-03-23 19:24:08 UTC
README
Silverstripe module that allows easy logging to database with backend-filtering for certain methods/messages etc.
Code examples:
DBLogger::log($data, __METHOD__, SS_LOG_GENERAL);
DBLogger::log('Invalid parameter given', __METHOD__, SS_LOG_ERROR);
DBLogger::log('User tried to access prohibited content', __METHOD__, SS_LOG_ACCESS);
Logging categories:
- SS_LOG_ERROR
- SS_LOG_ACCESS
- SS_LOG_GENERAL
- SS_LOG_FILES
- SS_LOG_CONFIGURATION