Roxen.git / server / etc / modules / Logger.pmod

version» Context lines:

Roxen.git/server/etc/modules/Logger.pmod:1:   //! Your average base class for loggers. This one outputs by default   //! to stderr using the Roxen werror() method.   class BaseLogger {    object parent_logger;    mapping defaults = ([    "level" : INFO,    ]);       enum {    TRACE = 10, -  DEBUG = 20, +  DBG = 20,    INFO = 30,    WARN = 40,    ERROR = 50,    FATAL = 60    };       int default_log_level = INFO;       //! Override to allow early bailout in @[log()] if noone is    //! listening. @[log()] will bail out if this method returns 0.