\TriTanLogger

Event Logger for Errors and Activity.

Summary

Methods
Properties
Constants
__construct()
writeLog()
purgeActivityLog()
purgeErrorLog()
logError()
errorConstantToName()
$app
$hook
$db
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$app

$app : \TriTan\type

Application object.

Type

\TriTan\type

$hook

$hook : 

Type

$db

$db : 

Type

Methods

__construct()

__construct() 

writeLog()

writeLog(  $action,   $process,   $record,   $uname) 

Writes a log to the log table in the database.

Parameters

$action
$process
$record
$uname

purgeActivityLog()

purgeActivityLog() 

Purges audit trail logs that are older than 30 days old.

purgeErrorLog()

purgeErrorLog() 

Purges system error logs that are older than 30 days old.

logError()

logError(  $type,   $string,   $file,   $line) 

Parameters

$type
$string
$file
$line

errorConstantToName()

errorConstantToName(  $value) 

Parameters

$value