public void Add(LogMessage m) { _Messages.Add(m); Config.Notify(m); }
internal void Notify(LogMessage m) { if (LogNotifiers != null) LogNotifiers(m); }
public static LogInstance GetInstance(LogMessage m) { return GetByAssembly(m.Assembly); }
private static void _StoreLog(Assembly assem, string message, object sender) { LogMessage m = new LogMessage(); m.StackTrace = new StackTrace(); m.Message = message; m.Time = DateTime.Now; m.Assembly = assem; m.Sender = sender; if (sender != null) m._Trace_FrameNo++; if (GetByAssembly(assem) == null) CreateInstance(assem, new LoggerConfiguration()); GetByAssembly(assem).Add(m); }
public static LoggerConfiguration GetConfiguration(LogMessage m) { LogInstance inst = GetByAssembly(m.Assembly); return inst.Config; }