\myMVC_Logger

Class to manage a logging system.

It implements just a static function (doLog). See $config['SYSTEM']['ALERT_LEVEL'] in mymvc.php to configure the alert level (when should be logged)

Summary

Methods
Properties
Constants
doLog()
$levelString
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$levelString

$levelString : 

Possible levels

Type

Methods

doLog()

doLog(string  $method, integer  $line, string  $message, integer  $level = ALERT_CRITICAL, boolean  $send = false) : string

Save a message in the error log

Parameters

string $method

Method of the class

integer $line

Line that generate the error

string $message

The error message

integer $level

Error level (see mymvc.php)

boolean $send

true if the error should be sent per E-Mail oder to a Nagios server (Default: false)

Returns

string —

The complete error message, to use for an Exception