Docs For Class Zend_Log_Adapter_Null

## Class Zend_Log_Adapter_Null

Description

Implements interfaces:

- Zend_Log_Adapter_Interface

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

Located in /Zend/Log/Adapter/Null.php (line 36)

Method Summary
Zend_Log_Adapter_Null __construct ()
void __destruct ()
bool close ()
bool flush ($message 0, $level 1)
bool open ([mixed $filename = null], [mixed $accessMode = 'a'])
bool setOption (mixed $optionKey, mixed $optionValue)
bool write (mixed $fields, $level 1)
Methods
Constructor __construct (line 42)

Class Constructor

- access: public

Zend_Log_Adapter_Null __construct ()
Destructor __destruct (line 53)

Class Destructor

Always check that the file has been closed and the buffer flushed before destruction.

- access: public

void __destruct ()
close (line 120)

Closes the file resource for the logfile. Calling this function does not write any buffered data into the log, so flush() must be called before close().

- return: True
- access: public

bool close ()

Implementation of:

Zend_Log_Adapter_Interface::close()
  Close the log storage opened by the log adapter. If the adapter supports buffering, all log data must be sent to the log before the storage is closed.

flush (line 108)

Write a message to the log. This function really just writes the message to the buffer.

- return: True
- access: public

bool flush ($message 0, $level 1)

- $message 0: Log message
- $level 1: Log level, one of Zend_Log::LEVEL_* constants

open (line 80)

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

- return: True
- access: public

bool open ([mixed $filename = null], [mixed $accessMode = 'a'])

Implementation of:

Zend_Log_Adapter_Interface::open()
  Open the storage resource. If the adapter supports buffering, this may not actually open anything until it is time to flush the buffer.

setOption (line 67)

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

- return: True
- access: public

bool setOption (mixed $optionKey, mixed $optionValue)

Implementation of:

Zend_Log_Adapter_Interface::setOption()
  Sets an option specific to the implementation of the log adapter.

write (line 95)

Write a message to the log. This function really just writes the message to the buffer.

If buffering is enabled, the message won't hit the filesystem until the buffer fills or is flushed. If buffering is not enabled, the buffer will be flushed immediately.

- return: True
- access: public

bool write (mixed $fields, $level 1)

- $level 1: Log level, one of Zend_Log::LEVEL_* constants

Implementation of:

Zend_Log_Adapter_Interface::write()
  Write a message to the log. If the adapter supports buffering, the message may or may not actually go into storage until the buffer is flushed.

Documentation generated on Sun, 29 Oct 2006 21:27:25 -0600 by phpDocumentor 1.3.0RC6