[GENERIC] Zend_Translate:
[zend.git] / documentation / manual / en / module_specs / Zend_Application-AvailableResources-Log.xml
blob4f2660cc75d0f868f3d411014f83c85edd454080
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Reviewed: no -->
3 <sect2 id="zend.application.available-resources.log">
4     <title>Zend_Application_Resource_Log</title>
6     <para>
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.
12     </para>
14     <example id="zend.application.available-resources.log.configExample">
15         <title>Sample Log Resource Configuration</title>
17         <para>
18             Below is a sample <acronym>INI</acronym> snippet showing how to
19             configure the log resource.
20         </para>
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
28 ]]></programlisting>
30         <para>
31             For more information on available options, please review the <link
32                 linkend="zend.log.factory">Zend_Log::factory() documentation</link>.
33         </para>
34     </example>
35 </sect2>