## Zend_Log_Writer_Abstract

Description

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

Located in /Log/Writer/Abstract.php (line 27)

Direct descendents

Class | Description
--- | ---
Zend_Log_Writer_File |
Zend_Log_Writer_Mock |

Variable Summary
array $_filters
array $_options
Method Summary
void __destruct ()
void addFilter (Zend_Log_Filter_Interface $filter)
void flush ()
void log (string $message, integer $level)
bool setOption ($optionKey $optionKey, $optionValue $optionValue)
void write (string $message, string $level)
Variables
array $_filters = array() (line 37)

- var: of Zend_Log_Filter_Interface
- access: protected

array $_options = array() (line 32)

- var: of key/value pair options
- access: protected

Redefined in descendants as:

- Zend_Log_Writer_File::$_options : Options: buffer True: use buffering False: no buffering, write immediately

Methods
Destructor __destruct (line 44)

Class Destructor

Flush log buffer on class shutdown.

- access: public

void __destruct ()
addFilter (line 55)

Add a filter specific to this writer.

- access: public

void addFilter (Zend_Log_Filter_Interface $filter)

- Zend_Log_Filter_Interface $filter

flush (line 111)

Flush the buffer to the storage.

- access: public
- abstract:

void flush ()

Redefined in descendants as:

- Zend_Log_Writer_File::flush() : Write a message to the log. This function really just writes the message to the buffer.
- Zend_Log_Writer_Mock::flush() : Return all messages that have been written to the mock writer, and remove those messages from the message buffer.

log (line 71)

Log a message to this writer.

- access: public

void log (string $message, integer $level)

- string $message: Message to log
- integer $level: Log level

setOption (line 89)

Sets an option specific to the implementation of the log writer.

- return: True
- access: public

bool setOption ($optionKey $optionKey, $optionValue $optionValue)

- $optionKey $optionKey: Key name for the option to be changed. Keys are writer-specific
- $optionValue $optionValue: New value to assign to the option

write (line 106)

Buffer a message to be stored in the storage implemented by this writer.

- access: public
- abstract:

void write (string $message, string $level)

- string $message: Message to log
- string $level: Log level

Redefined in descendants as:

- Zend_Log_Writer_File::write() : Write a message to the log. This function really just writes the message to the buffer.
- Zend_Log_Writer_Mock::write()

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