symfony API

sfAggregateLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

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

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)
    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) 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) 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.