Class myMVC_Logger

Description

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)

Located in /myMVC/Logger.php (line 29)


	
			
Variable Summary
 static mixed $levelString
Method Summary
 static string doLog (string $method, int $line, string $message, [int $level = ALERT_CRITICAL], [boolean $send = false])
Variables
static mixed $levelString = array(
ALERT_SQL => 'SQL',
ALERT_WARNING => 'WARNING',
ALERT_DEBUG => 'DEBUG',
ALERT_CRITICAL => 'CRITICAL',
)
(line 34)

Possible levels

Methods
static doLog (line 51)

Save a message in the error log

  • return: The complete error message, to use for an Exception
  • access: public
string doLog (string $method, int $line, string $message, [int $level = ALERT_CRITICAL], [boolean $send = false])
  • string $method: Method of the class
  • int $line: Line that generate the error
  • string $message: The error message
  • int $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)

Documentation generated on Wed, 27 Jun 2012 09:45:15 +0200 by phpDocumentor 1.4.4