symfony API

sfVarLogger 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:

sfVarLogger logs messages within its instance for later use.

Inheritence

sfWebDebugLogger  <  sfVarLogger  <  sfLogger

Method Summary

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.

  • (array) getDebugBacktrace () Browse code

    Returns the debug stack.

  • (integer) getHighestPriority () Browse code

    Returns the highest priority in the logs.

    returns The highest priority

  • (array) getLogs () Browse code

    Gets the logs.


    Each log entry has the following attributes:

    * priority
    * time
    * message
    * type
    * debugStack

    returns An array of logs

  • (array) getPriorities () Browse code

    Returns all the priorities in the logs.

    returns An array of priorities

  • (array) getTypes () Browse code

    Returns all the types in the logs.

    returns An array of types

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

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

    Initializes this logger.


    Available options:

    - xdebug_logging: Whether to add xdebug trace to the logs (false by default).

    returns true, if initialization completes successfully, otherwise false.