public static void Log(this LogType logType, string message, params object[] args) { var formattedMessage = string.Format(message, args); var logMessage = new LogMessage { TraceId = ThreadLocalVariables.TraceId, MethodId = ThreadLocalVariables.MethodId, Timestamp = DateTime.Now, LogType = logType, Message = formattedMessage }; logMessage.Broadcast(); }
public void Send(LogMessage message) { Clients.All.broadcastLogMessage(message); }