public IntervalLogger() { this.Record = new LogRecord(); this.Record.Title = RunTime.CalleeFullName(); this.Stopwatch = new Stopwatch(); this.Stopwatch.Start(); }
public static LogRecord Create(LogLevel level) { return(new LogRecord() { Level = level } .SetTitle(RunTime.CalleeFullName())); }
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>(); }
public static LogRecord Create() { return(new LogRecord() .SetTitle(RunTime.CalleeFullName())); }
public ILogger() : base() { base.Record.Title = RunTime.CalleeFullName(); }