•  
  •  
  •  
  •  
  •  
  •  
  •  
Username:
Password:
Forgot password?  Register

Extending the Zend_Log layout

Title: Extending the Zend_Log layout
Category: Zend Log
Clicks: 122
Listing added: Mar 15, 2007
PageRank:
0/10
As the current Zend_Log component doesn't provide very meaningful log content per default I wanted to extend the information logged and also the logfile layout. In the article of Stefan Koopmanschap this issue is solved by using the setMessagePrefix method of the Zend_Log class, which pushs the additional log information and layout unlovely to the Bootstrap file. Another way to improve the content and layout being logged is writing a custom Zend_Log_Adapter by extending for instance Zend_Log_Adapter_File and overwriting its _parseLogLine metod and redefining its _options array.
Zend Framework Version: 0.8.0
Author Name: Raphael Stolt
Source: <raphael.on.php/>
Referred By: Zend Framework Tutorials
Rating
  •  

Rating: 10.00/10 (1 vote cast) 

Comments

 

 


 characters left

captchaPlease input letters you see on the image.
Click on image to redraw.