Class Support_Resources_DefaultLogger

Description

A simplistic logger that passes message to error_log and does rudimentary filtering based on the current error reporting setting.

Located in /support/lib/Support/Resources/DefaultLoggerProvider.php (line 41)


	
			
Variable Summary
 mixed $level
 mixed $name
Method Summary
 Support_Resources_DefaultLogger __construct ( $name)
 void debug (string $msg)
 void error (string $msg)
 void fatal (string $msg)
 void info (string $msg)
 void log_message (string $level, string $msg)
 void timestamp ()
 void warn (string $msg)
Variables
mixed $level (line 42)
  • access: protected
mixed $name (line 43)
  • access: protected
Methods
Constructor __construct (line 48)

Constructor

  • access: public
Support_Resources_DefaultLogger __construct ( $name)
  • $name
debug (line 61)

Log a debug message.

This message is logged if error reporting has any value greater than E_STRICT (e.g. if E_ALL is set).

  • access: public
void debug (string $msg)
  • string $msg: The message to log
error (line 94)

Log an error message.

This message is logged if error reporting includes E_ERROR

  • access: public
void error (string $msg)
  • string $msg: The message to log
fatal (line 105)

Log a fatal error message.

This message is always passed to logging

  • access: public
void fatal (string $msg)
  • string $msg: The message to log
info (line 72)

Log an info message.

This message is logged if error reporting includes E_NOTICE

  • access: public
void info (string $msg)
  • string $msg: The message to log
log_message (line 115)

Send a message to the error log

  • access: protected
void log_message (string $level, string $msg)
  • string $level: Descriptive tag for the logging level
  • string $msg: The message to log
timestamp (line 124)

Return a formatted timestamp

  • access: protected
void timestamp ()
warn (line 83)

Log a warning message.

This message is logged if error reporting includes E_WARNING

  • access: public
void warn (string $msg)
  • string $msg: The message to log

Documentation generated on Wed, 25 Apr 2012 09:46:42 -0700 by phpDocumentor 1.4.3