public void LogAction(LogMessage message) { if (message.Importance >= MinimumImportance) { string formattedMessage = ListenerService.FormatMessage(_format, message); lock (PadLock) { Buffer.AppendLine(formattedMessage); } } }
public void LogAction(LogMessage message) { if (!IsRunning) { return; } if (message.Importance >= MinimumImportance) { string formattedMessage = ListenerService.FormatMessage(_messageFormat, message); Console.WriteLine(formattedMessage); } }