public static StreamLogDetails GetStreamLogDetails(string streamIdentifier) { if (!streamLogs.ContainsKey(streamIdentifier)) streamLogs[streamIdentifier] = new StreamLogDetails(); return streamLogs[streamIdentifier]; }
public static StreamLogDetails GetStreamLogDetails(string streamIdentifier) { if (!streamLogs.ContainsKey(streamIdentifier)) { streamLogs[streamIdentifier] = new StreamLogDetails(); } return(streamLogs[streamIdentifier]); }
private static void WriteLogHeader(string streamIdentifier, LogLevel level, string message, params object[] args) { if (!streamLogs.ContainsKey(streamIdentifier)) { streamLogs[streamIdentifier] = new StreamLogDetails(); } else { streamLogs[streamIdentifier].FullLog.AppendLine(); } streamLogs[streamIdentifier].FullLog.AppendFormat("{0:HH:mm:ss.fffff} {1,5}: ", DateTime.Now, Enum.GetName(typeof(LogLevel), level).ToUpperInvariant()); if (level >= LogLevel.Error) { streamLogs[streamIdentifier].LastError = String.Format(message, args); } }
private static void WriteLogHeader(string streamIdentifier, LogLevel level, string message, params object[] args) { if (!streamLogs.ContainsKey(streamIdentifier)) streamLogs[streamIdentifier] = new StreamLogDetails(); else streamLogs[streamIdentifier].FullLog.AppendLine(); streamLogs[streamIdentifier].FullLog.AppendFormat("{0:HH:mm:ss.fffff} {1,5}: ", DateTime.Now, Enum.GetName(typeof(LogLevel), level).ToUpperInvariant()); if (level >= LogLevel.Error) streamLogs[streamIdentifier].LastError = String.Format(message, args); }