Ejemplo n.º 1
0
        public void Log(LogLevel logLevel, LogLocation logLocation, string context, string code, string message, Exception exception, params object[] parameters)
        {
            var lineMessage = LogUtilities.FormatMessage(logLevel, logLocation, context, message, exception, parameters);

            MessageLog.Add(new XUnitLogEvent(code, lineMessage, exception, logLevel));

            output.WriteLine(lineMessage);

            if (exception != null)
            {
                output.WriteLine(exception.ToString());
            }
        }