jreuteler/silverstripe-db-log

Adds a database logger and log-search/filtering in the backend.

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Type:silverstripe-module

1.0.1-alpha 2016-12-03 22:27 UTC

This package is not auto-updated.

Last update: 2024-04-22 10:31:58 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