Example #1
0
 public IntervalLogger()
 {
     this.Record       = new LogRecord();
     this.Record.Title = RunTime.CalleeFullName();
     this.Stopwatch    = new Stopwatch();
     this.Stopwatch.Start();
 }
Example #2
0
 public static LogRecord Create(LogLevel level)
 {
     return(new LogRecord()
     {
         Level = level
     }
            .SetTitle(RunTime.CalleeFullName()));
 }
Example #3
0
 public LogRecord()
 {
     this.Title         = RunTime.CalleeFullName();
     this.LogID         = Guid.NewGuid().ToString();
     this.TransactionID = string.Empty;
     this.Level         = LogLevel.Info;
     this.Timestamp     = DateTime.Now;
     this.Message       = string.Empty;
     this.AppID         = Config.Kernel.AppID;
     this.ServerIP      = RunTime.ServerIP;
     this.ServerName    = Environment.MachineName;
     this.ClientIP      = RunTime.GetClientIP();
     this.Browser       = RunTime.ReadyForRequest
                         ? HttpContext.Current.Request.Browser.ToAnys()
                         : new List <Any>();
     this.Datas = new List <Any>();
 }
Example #4
0
 public static LogRecord Create()
 {
     return(new LogRecord()
            .SetTitle(RunTime.CalleeFullName()));
 }
Example #5
0
 public ILogger()
     : base()
 {
     base.Record.Title = RunTime.CalleeFullName();
 }