private void ReadyCurrentItem(LogItem item) { CurrentTimestamp = DateTime.Now; CurrentItemLevel = item.Level; CurrentItemCategory = item.Category; CurrentItemPrefix = GetLogItemPrefix(item); }
public static void Log(this Subject<LogItem> subject, LogItem item) => subject.OnNext(item);
public static LogItem ToLogItem(this object source) => LogItem.ToLogItem(source);
protected virtual string GetLogItemPrefix(LogItem item) => $"{CurrentTimestamp.ToString(TimestampFormat, FormatProvider)}{item.GetPrefix()}";
public static void Log(this Subject <LogItem> subject, LogItem item) => subject.OnNext(item);