This class unifies the usage of logs.
Add record to sys_objects_logs table, like you are doing this for Comments or Voting objects:
- object: your logs object name, usually it is in the following format - vendor prefix, underscore, module prefix;
- module: module name
- logs_storage: logs storage, supported storages:
Auto
: log to the storage currently configured in settings
Folder
: files in logs
folder
PHPLog
: php log
STDErr
: standard error output, usually written to web server error log
- title: translatable title
- active: 0 or 1
- class_name: user defined class name which is derived from BxDolLogs.
- class_file: the location of the user defined class, leave it empty if class is located in system folders.
It's also possible to not add record to sys_objects_logs table, then it will use default settings for logging.
Example of usage
Log data to the logs object
$o->add($s);
static getObjectInstance($sObject)
Definition BxDolLogs.php:71
or
bx_log(
'my_module_logs_object', $s);
bx_log($sObject, $mixed)
Definition utils.inc.php:2439