public static void Write(this ILogStream log, ILogToken token, Action <LogException> msgBuilder) { log.Write(token, mo => { msgBuilder((e) => { mo(e, LogManager.GenerateUniquenessCode(e), null, null); }); }); }
public static void Write(this ILogStream log, ILogToken token, Action <LogExceptionUniqueness> msgBuilder) { log.Write(token, mo => { msgBuilder((e, u) => { mo(e, u, null, null); }); }); }
public static void Write(this ILogStream log, ILogToken token, Action <LogFormatMessage> msgBuilder) { log.Write(token, mo => { msgBuilder((m, f) => { mo(null, LogManager.GenerateUniquenessCode(m, f), m, f); }); }); }
public static void Write(this ILogStream log, ILogToken token, Action <LogFormatMessageWithCustomUniqueness> msgBuilder) { log.Write(token, mo => { msgBuilder((u, m, f) => { mo(null, u, m, f); }); }); }
public static void Write(string msg, int level) { if (level <= LogLevel) { var formatMsg = $"[{level}] [{DateTime.Now.ToString("yy/MM/dd hh:mm:ss")}] {msg}"; LogStream.Write(formatMsg, level); FileWriter?.WriteLineAsync(formatMsg); } }
public virtual void Write(ILogToken t, Action <CompleteLogMessage> msgBuilder) { _inner.Write(t, msgBuilder); }
public void WriteTest001() { _log.Write(_lt, m => m("Test")); _writer.Flush(); _assert.AreEqual("Test" + Environment.NewLine, _string.ToString()); }
public virtual void WriteTest001() { _log.Write(_lt, m => m("Test")); }