public void Debug([Localizable(false)] string message, params object[] args) { logHandler_.OnMessage(true, () => { if (args != null && args.Length > 0) { message = string.Format(message, args); } return(string.Format(lineFormat, DateTimeOffset.Now, GetPrefix_(), message, Thread.CurrentThread.ManagedThreadId, "DEBUG")); }); }
private void LogInner_(TraceLevel level, IEnumerable <string> testIds, Stage stage, StageType?type, object data, int methodsBack = 3) { if (skipLog_ || level < logHandler_.MinimumTraceLevel) { return; } string currentTime = DateTimeOffset.UtcNow.ToString(StandardDateTimeFormat.ISO8601); ClientEvent @event = new ClientEvent(currentTime, CreateMessageFromLog(testIds, stage, type, methodsBack, data), level); logHandler_.OnMessage(@event); }