Exemplo n.º 1
0
 private void SetLogEntryProperties(Net.Logging.LogEvent entry)
 {
     entry.User     = CurrentUser.UserName;
     entry.Computer = ClientIpAddress;
     entry.Source   = ClientApplicationName;
     entry.Category = ProcessMode.ToString();
 }
Exemplo n.º 2
0
 public virtual void Error(string messageSignature, params object[] formatArguments)
 {
     Net.Logging.LogEvent entry = _logger.CreateErrorEvent(messageSignature, formatArguments.Select(a => a.ToString()).ToArray());
     SetLogEntryProperties(entry);
     CommitLogEvent(entry);
 }
Exemplo n.º 3
0
 public virtual void CommitLogEvent(Net.Logging.LogEvent logEvent)
 {
     Task.Run(() => Logger.CommitLogEvent(logEvent));
 }