protected override void DoAppend(LogEvent logEvent) { var file = new FileInfo(FileName); if (!file.Exists) WriteHeader(); Write(Parse(logEvent)); }
protected override string Parse(LogEvent logEvent) { return string.Format("<event filename=\"{0}\" author=\"{1}\" date=\"{2}\" action=\"{3}\" />", logEvent.FileName, logEvent.User, GetTime(logEvent.Date).ToString(), logEvent.Action ); }
protected virtual string Parse(LogEvent logEvent) { return string.Format("{1}{0}{2}{0}{3}{0}{4}", delimiter, logEvent.Date, logEvent.User, logEvent.Action, logEvent.FileName ); }
protected override string Parse(LogEvent logEvent) { return string.Format("{1}{0}{2}{0}{3}{0}{4}", delimiter, GetTime(logEvent.Date).ToString(), logEvent.User, logEvent.Action, logEvent.FileName ); }
protected override string Parse(LogEvent logEvent) { return string.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}", delimiter, GetTime(logEvent.Date).ToString(), logEvent.User, logEvent.FileName, logEvent.Action, (logEvent is LogstalgiaEvent) ? (logEvent as LogstalgiaEvent).Size : "1" ); }
protected abstract void DoAppend(LogEvent logEvent);
public void Append(LogEvent logEvent) { DoAppend(logEvent); }
protected override void DoAppend(LogEvent logEvent) { AddData(logEvent); }
protected abstract void AddData(LogEvent logEvent);