Class Zend_Log

Description
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Log.php (line 33)


	
			
Class Constant Summary
 ALERT = 1
 CRIT = 2
 DEBUG = 7
 EMERG = 0
 ERR = 3
 INFO = 6
 NOTICE = 5
 WARN = 4
Method Summary
 Zend_Log __construct ([Zend_Log_Writer_Abstract|null $writer = null])
 void addLevel (string $name, integer $level)
 void log (string $message, integer $level)
 void __call (string $method, string $params)
Methods
Constructor __construct (line 65)

Class constructor. Create a new logger

  • access: public
Zend_Log __construct ([Zend_Log_Writer_Abstract|null $writer = null])
addFilter (line 141)

Add a filter that will be applied before all log writers.

Before a message will be received by any of the writers, it must be accepted by all filters added with this method.

  • access: public
void addFilter (Zend_Log_Filter_Interface $filter)
addLevel (line 120)

Add a custom log level

  • access: public
void addLevel (string $name, integer $level)
  • string $name: Name of level
  • integer $level: Numeric level
addWriter (line 157)

Add a writer. A writer is responsible for taking a log message and writing it out to storage.

  • access: public
void addWriter (Zend_Log_Writer_Abstract $writer)
log (line 100)

Log a message at a level

  • access: public
void log (string $message, integer $level)
  • string $message: Message to log
  • integer $level: Log level of message
__call (line 85)

Undefined method handler allows a shortcut:

$log->levelName('message') instead of $log->log('message', Zend_Log::LEVELNAME)

  • access: public
void __call (string $method, string $params)
  • string $method: log level name
  • string $params: message to log
Class Constants
ALERT = 1 (line 36)
CRIT = 2 (line 37)
DEBUG = 7 (line 42)
EMERG = 0 (line 35)
ERR = 3 (line 38)
INFO = 6 (line 41)
NOTICE = 5 (line 40)
WARN = 4 (line 39)

Documentation generated on Wed, 21 Feb 2007 12:02:38 -0800 by phpDocumentor 1.3.1