7 namespace SiliconStudio.Core.Diagnostics
9 public abstract partial class Logger
29 Verbose(message, null, callerInfo);
37 public void Verbose(
string messageFormat, params
object[] parameters)
39 Verbose(messageFormat, null, parameters);
49 public void Verbose(
string messageFormat,
Exception exception, params
object[] parameters)
51 if (parameters == null)
throw new ArgumentNullException(
"parameters");
52 Verbose(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
72 Debug(message, null, callerInfo);
80 public void Debug(
string messageFormat, params
object[] parameters)
82 Debug(messageFormat, null, parameters);
92 public void Debug(
string messageFormat,
Exception exception, params
object[] parameters)
94 if (parameters == null)
throw new ArgumentNullException(
"parameters");
95 Debug(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
115 Info(message, null, callerInfo);
123 public void Info(
string messageFormat, params
object[] parameters)
125 Info(messageFormat, null, parameters);
135 public void Info(
string messageFormat,
Exception exception, params
object[] parameters)
137 if (parameters == null)
throw new ArgumentNullException(
"parameters");
138 Info(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
158 Warning(message, null, callerInfo);
166 public void Warning(
string messageFormat, params
object[] parameters)
168 Warning(messageFormat, null, parameters);
180 if (parameters == null)
throw new ArgumentNullException(
"parameters");
181 Warning(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
201 Error(message, null, callerInfo);
209 public void Error(
string messageFormat, params
object[] parameters)
211 Error(messageFormat, null, parameters);
221 public void Error(
string messageFormat,
Exception exception, params
object[] parameters)
223 if (parameters == null)
throw new ArgumentNullException(
"parameters");
224 Error(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
244 Fatal(message, null, callerInfo);
252 public void Fatal(
string messageFormat, params
object[] parameters)
254 Fatal(messageFormat, null, parameters);
264 public void Fatal(
string messageFormat,
Exception exception, params
object[] parameters)
266 if (parameters == null)
throw new ArgumentNullException(
"parameters");
267 Fatal(
string.Format(messageFormat, parameters), exception, ExtractCallerInfo(parameters));
void Info(string messageFormat, Exception exception, params object[] parameters)
Logs the specified info message with an exception.
void Verbose(string messageFormat, params object[] parameters)
Logs the specified verbose message.
void Info(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified info message with an exception.
void Info(string messageFormat, params object[] parameters)
Logs the specified info message.
void Fatal(string message, CallerInfo callerInfo=null)
Logs the specified fatal message.
void Verbose(string message, CallerInfo callerInfo=null)
Logs the specified verbose message.
void Info(string message, CallerInfo callerInfo=null)
Logs the specified info message.
void Verbose(string messageFormat, Exception exception, params object[] parameters)
Logs the specified verbose message with an exception.
void Warning(string message, CallerInfo callerInfo=null)
Logs the specified warning message.
void Error(string messageFormat, params object[] parameters)
Logs the specified error message.
A Fatal error message (level 5).
A class to store Caller Information attributes.
void Error(string messageFormat, Exception exception, params object[] parameters)
Logs the specified error message with an exception.
A debug message (level 0).
void Debug(string messageFormat, Exception exception, params object[] parameters)
Logs the specified debug message with an exception.
void Fatal(string messageFormat, Exception exception, params object[] parameters)
Logs the specified fatal message with an exception.
void Error(string message, CallerInfo callerInfo=null)
Logs the specified error message.
A verbose message (level 1).
void Debug(string message, CallerInfo callerInfo=null)
Logs the specified debug message.
void Debug(string messageFormat, params object[] parameters)
Logs the specified debug message.
void Error(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified error message with an exception.
void Warning(string messageFormat, params object[] parameters)
Logs the specified warning message.
LogMessageType
Type of a LogMessage.
void Warning(string messageFormat, Exception exception, params object[] parameters)
Logs the specified warning message with an exception.
An error message (level 4).
A base log message used by the logging infrastructure.
void Fatal(string messageFormat, params object[] parameters)
Logs the specified fatal message.
void Fatal(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified fatal message with an exception.
An regular info message (level 2).
void Verbose(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified verbose message with an exception.
void Debug(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified debug message with an exception.
void Warning(string message, Exception exception, CallerInfo callerInfo=null)
Logs the specified warning message with an exception.
Output message to log right away.
A warning message (level 3).