Class Zend_Log

Description
  • version: $Id: Log.php 4560 2007-04-20 08:01:32Z mike $
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Log.php (line 32)


	
			
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], array $extras)
 void __destruct ()
 void addPriority (string $name, integer $priority)
 void log (string $message, integer $priority)
 void setEventItem ($name $name, $value $value)
 void __call (string $method, string $params)
Methods
Constructor __construct (line 70)

Class constructor. Create a new logger

  • access: public
Zend_Log __construct ([Zend_Log_Writer_Abstract|null $writer = null], array $extras)
Destructor __destruct (line 85)

Class destructor. Shutdown log writers

  • access: public
void __destruct ()
addFilter (line 180)

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)
addPriority (line 159)

Add a custom priority

  • throws: Zend_Log_InvalidArgumentException
  • access: public
void addPriority (string $name, integer $priority)
  • string $name: Name of priority
  • integer $priority: Numeric priority
addWriter (line 196)

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 121)

Log a message at a priority

  • throws: Zend_Log_Exception
  • access: public
void log (string $message, integer $priority)
  • string $message: Message to log
  • integer $priority: Priority of message
setEventItem (line 208)

Set an extra item to pass to the log writers.

  • access: public
void setEventItem ($name $name, $value $value)
  • $name $name: Name of the field
  • $value $value: Value of the field
__call (line 103)

Undefined method handler allows a shortcut:

$log->priorityName('message') instead of $log->log('message', Zend_Log::PRIORITY_NAME)

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

Documentation generated on Sun, 27 May 2007 23:25:29 -0700 by phpDocumentor 1.3.2