...
Code Block | ||||
---|---|---|---|---|
| ||||
// use the default logger instance: $logger = Zend_Registry::get('logger'); $logger->addWriter('name', $writerInstance); |
Logging Database Tables
Currently there are two database tables receiving events:
- Zf_errorlog via ZfExtended_Logger_Writer_Database
- LEK_task_log via editor_Logger_TaskWriter
Whats the difference?
Zf_errorlog receives basicly ALL events, limited by the configured log level of events to be received.
LEK_task_log receives:
- only events which contain a task in its extra data
- only events higher as the configured log level for that writer
- The content of that table is available via API to get information to the tasks in the GUI
Code Block | ||||
---|---|---|---|---|
| ||||
-- instead of
select * from Zf_errorlog;
-- use for better readability:
select * from Zf_errorlog\G |
Exceptions
In translate5 to less exceptions were used till now. Mostly just a ZfExtended_Exception was used.
...