public void Log(FunctionId functionId, LogMessage logMessage) { OutputPane.WriteLine( string.Format( "[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage() ) ); }
public void LogBlockStart( FunctionId functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken ) { OutputPane.WriteLine( string.Format( "[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage() ) ); }
private string GetMessage(LogMessage logMessage) { return(IsVerbose() ? logMessage.GetMessage() : string.Empty); }
public void LogBlockStart(FunctionId functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken) { Trace.WriteLine(string.Format("[{0}] Start({1}) : {2}/{3} - {4}", Thread.CurrentThread.ManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage())); }
public void Log(FunctionId functionId, LogMessage logMessage) { Trace.WriteLine(string.Format("[{0}] {1}/{2} - {3}", Thread.CurrentThread.ManagedThreadId, functionId.ToString(), logMessage.GetMessage())); }
private void LogBlockEvent(FunctionId functionId, LogMessage logMessage, int uniquePairId, string blockEvent) => Log(functionId, $"[{blockEvent} - {uniquePairId}] {logMessage.GetMessage()}");
public void Log(FunctionId functionId, LogMessage logMessage) => Log(functionId, logMessage.GetMessage());