예제 #1
0
파일: LogWriter.cs 프로젝트: OmniKits/RxLog
        private void ReadyCurrentItem(LogItem item)
        {
            CurrentTimestamp = DateTime.Now;
            CurrentItemLevel = item.Level;
            CurrentItemCategory = item.Category;

            CurrentItemPrefix = GetLogItemPrefix(item);
        }
예제 #2
0
 public static void Log(this Subject<LogItem> subject, LogItem item)
     => subject.OnNext(item);
예제 #3
0
 public static LogItem ToLogItem(this object source)
 => LogItem.ToLogItem(source);
예제 #4
0
파일: LogWriter.cs 프로젝트: OmniKits/RxLog
 protected virtual string GetLogItemPrefix(LogItem item)
     => $"{CurrentTimestamp.ToString(TimestampFormat, FormatProvider)}{item.GetPrefix()}";
예제 #5
0
 public static void Log(this Subject <LogItem> subject, LogItem item)
 => subject.OnNext(item);