public void Log(LogMessageLevelEnum level, string message, params object[] args) { foreach (ILogService service in register) { service.Log(level, message, args); } }
public void Log(LogMessageLevelEnum level, string message, params object[] args) { if (level < minimumLevel) { return; } TextWriter writer = GetLogWriter(); writer.WriteLine($"[{level} {DateTime.Now:hh-mm-ss}]: {message ?? "NULL"}"); WriteObjects(args, writer); }
public void Log(LogMessageLevelEnum level, string message, params object[] args) { // no operation }
public LogMessage(LogMessageLevelEnum level, string message, params object[] args) { Level = level; Message = message; Arguments = new List <object>(args); }
public LogMessage(LogMessageLevelEnum level, string message) { Level = level; Message = message; Arguments = new List <object>(); }
public UserAppDataLogService(LogMessageLevelEnum minimumLevel) { this.minimumLevel = minimumLevel; }
public void Log(LogMessageLevelEnum level, string message, params object[] args) { Debug.WriteLine($"[{level}]: {message ?? "NULL"}"); WriteObjectsToDebug(args); }