symfony API

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

sfWebDebugLogger logs messages into the web debug toolbar.


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)

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

    $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,
    and most of E_STRICT.

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

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

    Listens for the context.load_factories event.

  • registerErrorHandler ()

    Registers logger with PHP error handler.