5 namespace SiliconStudio.Core.Diagnostics
26 Module = message.Module;
41 if (module == null)
throw new ArgumentNullException(
"module");
42 if (text == null)
throw new ArgumentNullException(
"text");
55 public string Module {
get; set; }
65 public string Text {
get; set; }
75 return string.Format(
"[{0}]: {1}: {2}{3}", Module, Type, Text,
ExceptionInfo != null ? string.Format(
" Exception: {0}", ExceptionInfo.Message) :
"");
SerializableLogMessage()
Initializes a new instance of the SerializableLogMessage class with default values for its properties...
override string ToString()
Exception Exception
Gets or sets the exception.
SerializableLogMessage(string module, LogMessageType type, string text, ExceptionInfo exceptionInfo=null)
Initializes a new instance of the SerializableLogMessage class using the given parameters to set its ...
A class that represents a copy of a LogMessage that can be serialized.
LogMessageType
Type of a LogMessage.
A base log message used by the logging infrastructure.
The base interface for log messages used by the logging infrastructure.
SerializableLogMessage(LogMessage message)
Initializes a new instance of the SerializableLogMessage class from a LogMessage instance.
This class is used to store some properties of an exception. It is serializable.