symfony API

sfLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

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

sfLogger manages all logging in symfony projects.

Method Summary

  • alert()
    Sets an alert message.
  • crit()
    Sets a critical message.
  • debug()
    Sets a debug message.
  • emerg()
    Sets an emerg message.
  • err()
    Sets an error message.
  • object getInstance()
    Returns the sfLogger instance.
  • array getLoggers()
    Retrieves current loggers.
  • string getLogLevel()
    Retrieves the log level for the current logger instance.
  • info()
    Sets an info message.
  • initialize()
    Initializes the logger.
  • log(, )
    Logs a message.
  • notice()
    Sets a notice message.
  • registerLogger()
    Registers a logger.
  • setLogLevel()
    Sets a log level for the current logger instance.
  • shutdown()
    Executes the shutdown procedure.
  • warning()
    Sets a warning message.

Method Details

  • alert ()

    Sets an alert message.

  • crit ()

    Sets a critical message.

  • debug ()

    Sets a debug message.

  • emerg ()

    Sets an emerg message.

  • err ()

    Sets an error message.

  • (object) getInstance ()

    Returns the sfLogger instance.

    returns the sfLogger instance

  • (array) getLoggers ()

    Retrieves current loggers.

    returns List of loggers

  • (string) getLogLevel ()

    Retrieves the log level for the current logger instance.

    returns Log level

  • info ()

    Sets an info message.

  • initialize ()

    Initializes the logger.

  • log (, )

    Logs a message.

  • notice ()

    Sets a notice message.

  • registerLogger ()

    Registers a logger.

  • setLogLevel ()

    Sets a log level for the current logger instance.

  • shutdown ()

    Executes the shutdown procedure.


    Cleans up the current logger instance.

  • warning ()

    Sets a warning message.