Zend_Application-AvailableResources-Log.xml 1.4 KB

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