Class Constructor
Zend_Log_Adapter_Null
__construct
()
Class Destructor
Always check that the file has been closed and the buffer flushed before destruction.
void
__destruct
()
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().
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.
Write a message to the log. This function really just writes the message to the buffer.
bool
flush
($message 0, $level 1)
-
$message
0: Log message
-
$level
1: Log level, one of Zend_Log::LEVEL_* constants
Sets an option specific to the implementation of the log adapter.
bool
open
([$optionKey $filename = null], [$optionValue $accessMode = 'a'])
-
$optionKey
$filename: Key name for the option to be changed. Keys are adapter-specific
-
$optionValue
$accessMode: New value to assign to the option
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.
Sets an option specific to the implementation of the log adapter.
bool
setOption
($optionKey $optionKey, $optionValue $optionValue)
-
$optionKey
$optionKey: Key name for the option to be changed. Keys are adapter-specific
-
$optionValue
$optionValue: New value to assign to the option
Implementation of:
- Zend_Log_Adapter_Interface::setOption()
- Sets an option specific to the implementation of the log adapter.
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.
bool
write
($message $fields, $level 1)
-
$level
1: Log level, one of Zend_Log::LEVEL_* constants
-
$message
$fields: Log message
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.