Logging in MVC (Zend Framework)

Posted by superdario on Stack Overflow See other posts from Stack Overflow or by superdario
Published on 2010-05-26T07:30:53Z Indexed on 2010/05/26 7:41 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

Is there a best-practice when it comes to where to put the logging functionality in an MVC application, for example a Zend Framework application (Zend_Log)? Should I put the logging in the controller or in the model? Or in both?

If in both, should they have the same logger or a separate one?

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc