/// <summary> /// Logs the specified entry. /// </summary> /// <param name="entry">The entry.</param> public void Log(LogEntry entry) { if (entry != null) { while (logEntries.Count >= maxEntriesToKeep) logEntries.RemoveAt(0); logEntries.Add(entry); } }
/// <summary> /// Logs the specified log entry. /// </summary> /// <param name="entry">The entry to log.</param> public override void Log(LogEntry entry) { if (entry == null) throw new ArgumentNullException("entry"); // Do we have a source? If yes ask-it to pre process the entry. if (CurrentSource != null) entry = CurrentSource.ProcessLogEntry(entry); if (entry == null) return; // The current source decided this entry should not be logged. CurrentLog.Logger.Log( thisServiceType, Helper.LogLevelToLog4NetLevel(entry.Level), entry.Message, entry.Exception); }
public void Log(LogEntry entry) { defaultLogService.Log(entry); }
/// <summary> /// Logs the specified log entry. /// </summary> /// <param name="entry">The entry to log.</param> public abstract void Log(LogEntry entry);
public override void Log(LogEntry entry) { System.Diagnostics.Debug.WriteLine(entry.ToString()); }
/// <summary> /// Logs the specified log entry. /// </summary> /// <param name="entry">The entry to log.</param> public virtual void Log(LogEntry entry) { WrappedLogger.Log(entry); }
public override void Log(LogEntry entry) { lock(logger) logger.Log(entry); }