Log.php
\Conjoon_Log
Package: Default
- Author
- Thorsten Suckow-Homberg
Properties
Methods

addWriter(
\Zend_Log_Writer_Abstract $writer
)
:
void
static
Add a writer. A writer is responsible for taking a log message and writing it out to storage.
Parameters
| Name | Type | Description |
|---|---|---|
| $writer | \Zend_Log_Writer_Abstract |

init(
Array $options
)
:
void
static
Inits this logger with the configuration provided from $options.
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $options | Array | An configuration array with the following properties: - enabled: 1/0 1 for enabled, otherwise 0 - writer: the type of write to use. Available writers: - firebug: to write directly to the firebug console |
| Exception | Description |
|---|---|
| \Conjoon_Exception | if init was already called, assuming this method may only be called once. |