symfony API

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

sfWebDebugLogger logs messages into the web debug toolbar.

Inheritence

sfWebDebugLogger  <  sfVarLogger < sfLogger

Method Summary

Methods inherited from sfVarLogger

doLog , getDebugBacktrace , getHighestPriority , getLogs , getPriorities , getTypes , initialize

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

  • (string) filterResponseContent ($event, $content) Browse code

    $event The sfEvent instance
    $content The response content

    Listens to the response.filter_content event.

    returns The filtered response content

  • handlePhpError ($errno, $errstr, $errfile, $errline, $errcontext) Browse code

    $errno The level of the error raised, as an integer.
    $errstr The error message, as a string.
    $errfile The filename that the error was raised in, as a string.
    $errline The line number the error was raised at, as an integer.
    $errcontext An array that points to the active symbol table at the point the error occurred.

    PHP error handler send PHP errors to log.


    PHP user space error handler can not handle E_ERROR, E_PARSE,
    E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING,
    and most of E_STRICT.

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

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

    Initializes this logger.


    Available options:

    * web_debug_class: The web debug class (sfWebDebug by default)

    returns true, if initialization completes successfully, otherwise false.

  • listenForLoadFactories ($event) Browse code

    Listens for the context.load_factories event.

  • registerErrorHandler () Browse code

    Registers logger with PHP error handler.