symfony API

sfLogger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

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 () Browse code

    Sets an alert message.

  • crit () Browse code

    Sets a critical message.

  • debug () Browse code

    Sets a debug message.

  • emerg () Browse code

    Sets an emerg message.

  • err () Browse code

    Sets an error message.

  • (object) getInstance () Browse code

    Returns the sfLogger instance.

    returns the sfLogger instance

  • (array) getLoggers () Browse code

    Retrieves current loggers.

    returns List of loggers

  • (string) getLogLevel () Browse code

    Retrieves the log level for the current logger instance.

    returns Log level

  • info () Browse code

    Sets an info message.

  • initialize () Browse code

    Initializes the logger.

  • log (, ) Browse code

    Logs a message.

  • notice () Browse code

    Sets a notice message.

  • registerLogger () Browse code

    Registers a logger.

  • setLogLevel () Browse code

    Sets a log level for the current logger instance.

  • shutdown () Browse code

    Executes the shutdown procedure.


    Cleans up the current logger instance.

  • warning () Browse code

    Sets a warning message.