Esempio n. 1
0
        internal Logger(String name, LogWriter writer)
        {
            Name = name;

            Debug = new LevelLogger(Level.Debug, this);
            Info = new LevelLogger(Level.Info, this);
            Warn = new LevelLogger(Level.Warn, this);
            Error = new LevelLogger(Level.Error, this);
            Fatal = new LevelLogger(Level.Fatal, this);
            Writer = writer ?? LogWriter.Adhoc;

            MinLevel = Level.Debug;
            IsEnabled = true;
        }
Esempio n. 2
0
        internal Logger(String name, LogWriter writer)
        {
            Name = name;

            Debug  = new LevelLogger(Level.Debug, this);
            Info   = new LevelLogger(Level.Info, this);
            Warn   = new LevelLogger(Level.Warn, this);
            Error  = new LevelLogger(Level.Error, this);
            Fatal  = new LevelLogger(Level.Fatal, this);
            Writer = writer ?? LogWriter.Adhoc;

            MinLevel  = Level.Debug;
            IsEnabled = true;
        }
 public static LevelLogger Debug(this LevelLogger logger, Object o)
 {
     return(logger.Logger.Debug(o));
 }
 public static LevelLogger Fatal(this LevelLogger logger, String format, params Object[] args)
 {
     return(logger.Logger.Fatal(format, args));
 }
 public static LevelLogger Fatal(this LevelLogger logger, String message)
 {
     return(logger.Logger.Fatal(message));
 }
 public static LevelLogger Fatal(this LevelLogger logger, Object o)
 {
     return(logger.Logger.Fatal(o));
 }
 public static LevelLogger Error(this LevelLogger logger, String message)
 {
     return(logger.Logger.Error(message));
 }
 public static LevelLogger Error(this LevelLogger logger, Object o)
 {
     return(logger.Logger.Error(o));
 }
 public static LevelLogger Warn(this LevelLogger logger, String message)
 {
     return(logger.Logger.Warn(message));
 }
 public static LevelLogger Warn(this LevelLogger logger, Object o)
 {
     return(logger.Logger.Warn(o));
 }
 public static LevelLogger Info(this LevelLogger logger, String message)
 {
     return(logger.Logger.Info(message));
 }
 public static LevelLogger Info(this LevelLogger logger, Object o)
 {
     return(logger.Logger.Info(o));
 }
 public static LevelLogger Debug(this LevelLogger logger, String message)
 {
     return(logger.Logger.Debug(message));
 }