jreuteler / silverstripe-db-log
Adds a database logger and log-search/filtering in the backend.
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:silverstripe-module
This package is not auto-updated.
Last update: 2025-02-24 14:12:47 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