1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.application.available-resources.log">
4 <title>Zend_Application_Resource_Log</title>
7 <classname>Zend_Application_Resource_Log</classname> to instantiate a
8 <classname>Zend_Log</classname> instance with an arbitrary number of log writers.
9 Configuration will be passed to the <methodname>Zend_Log::factory()</methodname> method,
10 allowing you to specify combinations of log writers and filters. The log instance may then
11 be retrieved from the bootstrap later in order to log events.
14 <example id="zend.application.available-resources.log.configExample">
15 <title>Sample Log Resource Configuration</title>
18 Below is a sample <acronym>INI</acronym> snippet showing how to
19 configure the log resource.
22 <programlisting language="ini"><![CDATA[
23 resources.log.stream.writerName = "Stream"
24 resources.log.stream.writerParams.stream = APPLICATION_PATH "/../data/logs/application.log"
25 resources.log.stream.writerParams.mode = "a"
26 resources.log.stream.filterName = "Priority"
27 resources.log.stream.filterParams.priority = 4
31 For more information on available options, please review the <link
32 linkend="zend.log.factory">Zend_Log::factory() documentation</link>.