Logging

Please note: This page is under construction and has not been finished yet.

Introduction

You can log events to the admin System Logs by using the built in log class. Use the following to retrieve the alerts class object.

$log = e107::getLog();

Logging methods

add()

$log = e107::getLog();
$log->add(name, details, type, code);

//Example: 
$log->add('My Event Name', $myDetailedData, E_LOG_INFORMATIVE, 'MYCODE');

Logging types

Last updated