[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/log/ -> sfLogger.class.php (sommaire)

(pas de description)

Poids: 242 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfLogger:: (16 méthodes):
  getInstance()
  initialize()
  getLogLevel()
  setLogLevel()
  getLoggers()
  registerLogger()
  log()
  emerg()
  alert()
  crit()
  err()
  warning()
  notice()
  info()
  debug()
  shutdown()


Classe: sfLogger  - X-Ref

sfLogger manages all logging in symfony projects.

sfLogger can be configuration via the logging.yml configuration file.
Loggers can also be registered directly in the logging.yml configuration file.

This level list is ordered by highest priority (SF_LOG_EMERG) to lowest priority (SF_LOG_DEBUG):
- EMERG:   System is unusable
- ALERT:   Immediate action required
- CRIT:    Critical conditions
- ERR:     Error conditions
- WARNING: Warning conditions
- NOTICE:  Normal but significant
- INFO:    Informational
- DEBUG:   Debug-level messages

getInstance()   X-Ref
Returns the sfLogger instance.

return: object the sfLogger instance

initialize()   X-Ref
Initializes the logger.


getLogLevel()   X-Ref
Retrieves the log level for the current logger instance.

return: string Log level

setLogLevel($level)   X-Ref
Sets a log level for the current logger instance.

param: string Log level

getLoggers()   X-Ref
Retrieves current loggers.

return: array List of loggers

registerLogger($logger)   X-Ref
Registers a logger.

param: string Logger name

log($message, $priority = SF_LOG_INFO)   X-Ref
Logs a message.

param: string Message
param: string Message priority

emerg($message)   X-Ref
Sets an emerg message.

param: string Message

alert($message)   X-Ref
Sets an alert message.

param: string Message

crit($message)   X-Ref
Sets a critical message.

param: string Message

err($message)   X-Ref
Sets an error message.

param: string Message

warning($message)   X-Ref
Sets a warning message.

param: string Message

notice($message)   X-Ref
Sets a notice message.

param: string Message

info($message)   X-Ref
Sets an info message.

param: string Message

debug($message)   X-Ref
Sets a debug message.

param: string Message

shutdown()   X-Ref
Executes the shutdown procedure.

Cleans up the current logger instance.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7