xPDO.log
xPDO::log
Log a message with details about where and when an event occurs.
Syntax
API Docs: http://api.modxcms.com/xpdo/xPDO.html#log
void log (integer $level, string $msg, [string $target = ''], [string $def = ''], [string $file = ''], [string $line = ''])
Example
Log an error message:
$xpdo->log(xPDO_LOG_LEVEL_ERROR,'An error occurred.');
Log a debug message:
$xpdo->log(xPDO_LOG_LEVEL_DEBUG,'This is a debugging statement.');
See Also
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).