Extending Zend_Log for application-specific need

Posted by spdaly on Stack Overflow See other posts from Stack Overflow or by spdaly
Published on 2010-04-15T17:54:37Z Indexed on 2010/04/15 18:03 UTC
Read the original article Hit count: 198

Filed under:
|

I am building a Zend Framework application that performs jobs submitted by the user. The actions taken need to be logged to a database. I would like to correlate the job with its log entries.

Instead of creating my own logging class, I would like to extend Zend_Log since it provides 99% of the functionality that I need. All I need to do is add a foreign key of the job id to the log data model.

Is this possible?

I'm also looking for a good example of Zend_Log writing to a database. I haven't searched SO yet. I will do that after I post this.

Thanks in advance...

Steve

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about php