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);
        }
示例#2
0
 public void Log(ActinLog log)
 {
     log = log.WithNoNulls();
     lockDestinations.EnterReadLock();
     try {
         foreach (var destination in destinations)
         {
             destination.Log(log);
         }
     }
     finally {
         lockDestinations.ExitReadLock();
     }
 }
示例#3
0
        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);
        }
示例#4
0
 public void Log(ActinLog log)
 {
 }
示例#5
0
 public void Log(ActinLog log)
 {
     Console.WriteLine(log.ToString());
 }
 public void Log(ActinLog log)
 {
     this.dispatcher.Log(log);
 }