jreuteler/silverstripe-db-log

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

Maintainers

Package info

github.com/jreuteler/DbLog

Type:silverstripe-module

pkg:composer/jreuteler/silverstripe-db-log

Statistics

Installs: 37

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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