Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/06/10 14:43:45 (15 years ago)
Author:
kgrading
Message:

Added Milliseconds to the logging timestamp (#826)

Location:
trunk/sources/HeuristicLab.Tracing/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tracing/3.2/HeuristicLab.Hive.log4net.xml

    r2062 r2610  
    66    <rollingStyle value="Size" />
    77    <maxSizeRollBackups value="10" />
    8     <maximumFileSize value="10KB" />
     8    <maximumFileSize value="1000KB" />
    99    <staticLogFileName value="true" />
    1010    <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
  • trunk/sources/HeuristicLab.Tracing/3.2/HiveLogger.cs

    r2591 r2610  
    3434
    3535    public static void Debug(object message) {
    36       GetDefaultLogger(1).Debug(message);
     36      GetDefaultLogger(1).Debug(DateTime.Now + ":" + DateTime.Now.Millisecond + " - " + message);
    3737    }
    3838
    3939    public static void Info(object message) {
    40       GetDefaultLogger(1).Info(message);
     40      GetDefaultLogger(1).Info(DateTime.Now + ":" + DateTime.Now.Millisecond + " - " + message);
    4141    }
    4242
    4343    public static void Warn(object message) {
    44       GetDefaultLogger(1).Warn(message);
     44      GetDefaultLogger(1).Warn(DateTime.Now + ":" + DateTime.Now.Millisecond + " - " + message);
    4545    }
    4646
    4747    public static void Error(object message) {
    48       GetDefaultLogger(1).Error(message);
     48      GetDefaultLogger(1).Error(DateTime.Now + ":" + DateTime.Now.Millisecond + " - " + message);
    4949    }
    5050
    5151    public static void Fatal(object message) {
    52       GetDefaultLogger(1).Fatal(message);
     52      GetDefaultLogger(1).Fatal(DateTime.Now + ":" + DateTime.Now.Millisecond + " - " + message);
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.