symfony API

sfAggregateLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu


You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfAggregateLogger logs messages through several loggers.


sfAggregateLogger  <  sfLogger

Method Summary

  • addLogger($logger)
    Adds a logger.
  • addLoggers($loggers)
    Adds an array of loggers.
  • doLog($message, $priority)
    Logs a message.
  • array getLoggers()
    Retrieves current loggers.
  • Boolean initialize($dispatcher, $options)
    Initializes this logger.
  • shutdown()
    Executes the shutdown method.

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

  • addLogger ($logger)

    $logger The Logger object

    Adds a logger.

  • addLoggers ($loggers)

    $loggers An array of Logger objects

    Adds an array of loggers.

  • doLog ($message, $priority)

    $message Message
    $priority Message priority

    Logs a message.

  • (array) getLoggers ()

    Retrieves current loggers.

    returns List of loggers

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

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

    Initializes this logger.

    Available options:

    - loggers: Logger objects that extends sfLogger.

    returns true, if initialization completes successfully, otherwise false.

  • shutdown ()

    Executes the shutdown method.