symfony API

sfStreamLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.3 API OpenSearch


You are currently browsing the symfony API for the 1.3 version. Switch to:

sfStreamLogger logs messages to a PHP stream.


sfConsoleLogger  <  sfStreamLogger  <  sfLogger

Method Summary

  • doLog($message, $priority)
    Logs a message.
  • Boolean initialize($dispatcher, $options)
    Initializes this logger.
  • setStream($stream)
    Sets the PHP stream to use for this logger.

Methods inherited from sfLogger

alert , crit , debug , doLog , emerg , err , getLogLevel , getOptions , getPriorityName , info , initialize , listenToLogEvent , log , notice , setLogLevel , setOption , shutdown , warning , __construct

Method Details

  • doLog ($message, $priority) Browse code

    $message Message
    $priority Message priority

    Logs a message.

  • (Boolean) initialize ($dispatcher, $options) Browse code

    $dispatcher A sfEventDispatcher instance
    $options An array of options.

    Initializes this logger.

    Available options:

    - stream: A PHP stream

    returns true, if initialization completes successfully, otherwise false.

  • setStream ($stream) Browse code

    $stream A php stream

    Sets the PHP stream to use for this logger.