symfony API

sfAggregateLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 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.

Inheritence

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 = array())
    Initializes this logger.
  • shutdown()
    Executes the shutdown method.

Methods inherited from sfLogger

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

Method Details

  • addLogger ($logger) Browse code

    $logger The Logger object

    Adds a logger.

  • addLoggers ($loggers) Browse code

    $loggers An array of Logger objects

    Adds an array of loggers.

  • doLog ($message, $priority) Browse code

    $message Message
    $priority Message priority

    Logs a message.

  • (array) getLoggers () Browse code

    Retrieves current loggers.

    returns List of loggers

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

    $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 () Browse code

    Executes the shutdown method.