concept Zend_Log in category php
appears as: Zend_Log

This is an excerpt from Manning's book Zend Framework in Action.
Table 14.1. Core frontend options of Zend_Cache
Option
Description
caching By default this is set to true, so you likely won't have to change it, but you can set it to false if you want to temporarily turn off caching for testing. This is an alternative to commenting out the cache test. lifetime This is the amount of time in seconds before the cache expires and the result is regenerated. By default, it’s set to 1 hour (3600 seconds). You can set it to null if you want the cache to last forever. logging If you set this to true, the caching will be logged using Zend_Log. By default it’s set to false. If set to true, there will be a performance hit. write_control By default, this is set to true, and the cache will be read after it’s written to check that it hasn’t become corrupted. You can disable this, but it’s good to have some extra protection against corruption, so we recommend leaving it on. automatic_serialization If set to true, this will serialize the cache data (refer to the PHP manual for the serialize function). This allows you to store complex data types such as arrays or objects. If you’re only storing a simple data type such as a string or integer, you do not need to serialize the data and can leave this as the default value of false. automatic_cleaning_factor The automatic cleaning facility will clean up expired caches when a new cache result is stored. If you set it to 0, it won’t clean up expired caches. If set to 1, it will clean up on every cache write. If you set it to a number higher than 1, it will clean up randomly 1 in x times, where x is the number you enter. By default, it’s set to 10, so it will randomly clean up 1 in 10 times a new cache result is stored.
Zend_Debug is best used for quick and dirty testing. If you want to put some more long-term diagnostics into your application, Zend_Log is a better fit.
Zend_Log is designed to log data to multiple backends, such as files or database tables. Using Zend_Log to store log info to a file is very simple, as shown in listing C.8.
The Zend_Log object needs a writer object to store the data. In this case, we create a stream writer to a file called /tmp/zf_log.txt
and attach it to the Zend_Log object
.
and attach it to the Zend_Log object
.