7 namespace SiliconStudio.Core.Diagnostics
32 Verbose(log, message, null, callerInfo);
40 public static void Verbose(
this ILogger log,
string messageFormat, params
object[] parameters)
42 Verbose(log, messageFormat, null, parameters);
54 if (parameters == null)
throw new ArgumentNullException(
"parameters");
55 Verbose(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
75 Debug(log, message, null, callerInfo);
83 public static void Debug(
this ILogger log,
string messageFormat, params
object[] parameters)
85 Debug(log, messageFormat, null, parameters);
95 public static void Debug(
this ILogger log,
string messageFormat,
Exception exception, params
object[] parameters)
97 if (parameters == null)
throw new ArgumentNullException(
"parameters");
98 Debug(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
118 Info(log, message, null, callerInfo);
126 public static void Info(
this ILogger log,
string messageFormat, params
object[] parameters)
128 Info(log, messageFormat, null, parameters);
138 public static void Info(
this ILogger log,
string messageFormat,
Exception exception, params
object[] parameters)
140 if (parameters == null)
throw new ArgumentNullException(
"parameters");
141 Info(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
161 Warning(log, message, null, callerInfo);
169 public static void Warning(
this ILogger log,
string messageFormat, params
object[] parameters)
171 Warning(log, messageFormat, null, parameters);
183 if (parameters == null)
throw new ArgumentNullException(
"parameters");
184 Warning(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
204 Error(log, message, null, callerInfo);
212 public static void Error(
this ILogger log,
string messageFormat, params
object[] parameters)
214 Error(log, messageFormat, null, parameters);
226 if (parameters == null)
throw new ArgumentNullException(
"parameters");
227 Error(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
247 Fatal(log, message, null, callerInfo);
255 public static void Fatal(
this ILogger log,
string messageFormat, params
object[] parameters)
257 Fatal(log, messageFormat, null, parameters);
269 if (parameters == null)
throw new ArgumentNullException(
"parameters");
270 Fatal(log,
string.Format(messageFormat, parameters), exception,
Logger.ExtractCallerInfo(parameters));
static void Error(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified error message with an exception.
static void Verbose(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified verbose message.
string Module
Gets the module this logger refers to.
static void Warning(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified warning message.
static void Debug(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified debug message.
static void Debug(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified debug message.
static void Debug(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified debug message with an exception.
static void Debug(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified debug message with an exception.
static void Warning(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified warning message with an exception.
A Fatal error message (level 5).
A class to store Caller Information attributes.
A debug message (level 0).
static void Verbose(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified verbose message with an exception.
static void Verbose(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified verbose message with an exception.
A verbose message (level 1).
static void Info(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified info message with an exception.
static void Error(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified error message with an exception.
Base implementation for ILogger.
static void Fatal(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified fatal message with an exception.
static void Verbose(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified verbose message.
static void Info(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified info message.
static void Info(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified info message.
LogMessageType
Type of a LogMessage.
static void Fatal(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified fatal message with an exception.
static void Error(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified error message.
An error message (level 4).
A base log message used by the logging infrastructure.
static void Error(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified error message.
An regular info message (level 2).
static void Warning(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified warning message.
static void Fatal(this ILogger log, string message, CallerInfo callerInfo=null)
Logs the specified fatal message.
static void Fatal(this ILogger log, string messageFormat, params object[] parameters)
Logs the specified fatal message.
static void Warning(this ILogger log, string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified warning message with an exception.
A warning message (level 3).
static void Info(this ILogger log, string messageFormat, Exception exception, params object[] parameters)
Logs the specified info message with an exception.