private void dispatch(string userMessage, string secondaryLocation, string details, LogType type) { var mainLocation = locationOverride ?? actor?.ActorName; var location = secondaryLocation == null ? mainLocation : $"{mainLocation}.{secondaryLocation}"; var log = new ActinLog(this.dispatcher.Clock.Now, actor?.IdString, location, userMessage, details, type); Log(log); }
public void Log(ActinLog log) { log = log.WithNoNulls(); lockDestinations.EnterReadLock(); try { foreach (var destination in destinations) { destination.Log(log); } } finally { lockDestinations.ExitReadLock(); } }
private void dispatch(string context, string location, string userMessage, string details, LogType logType) { var log = new ActinLog(Clock.Now, context, location, userMessage, details, logType); Log(log); }
public void Log(ActinLog log) { }
public void Log(ActinLog log) { Console.WriteLine(log.ToString()); }
public void Log(ActinLog log) { this.dispatcher.Log(log); }