SerializableLogMessage Class
Namespace: Stride.Core.DiagnosticsAssembly: Stride.Core.dll
A class that represents a copy of a LogMessage that can be serialized.
[DataContract]
[Serializable]
public class SerializableLogMessage : ILogMessage
Name | Description | |
---|---|---|
Constructors | ||
SerializableLogMessage() | Initializes a new instance of the SerializableLogMessage class with default values for its properties. |
|
SerializableLogMessage(LogMessage) | Initializes a new instance of the SerializableLogMessage class from a LogMessage instance. |
|
SerializableLogMessage(String, LogMessageType, String, ExceptionInfo) | Initializes a new instance of the SerializableLogMessage class using the given parameters to set its properties. |
|
Properties | ||
ExceptionInfo | Gets or sets the ExceptionInfo of this message. |
|
Module | Gets or sets the module. |
|
Text | Gets or sets the text. |
|
Type | Gets or sets the type of this message. |
|
Methods | ||
ToString() |
Constructors
SerializableLogMessage()
Initializes a new instance of the SerializableLogMessage class with default values for its properties.
public SerializableLogMessage()
SerializableLogMessage(LogMessage)
Initializes a new instance of the SerializableLogMessage class from a LogMessage instance.
public SerializableLogMessage(LogMessage message)
Parameters
Type | Name | Description |
---|---|---|
LogMessage | message | The LogMessage instance to use to initialize properties. |
SerializableLogMessage(String, LogMessageType, String, ExceptionInfo)
Initializes a new instance of the SerializableLogMessage class using the given parameters to set its properties.
public SerializableLogMessage(string module, LogMessageType type, string text, ExceptionInfo exceptionInfo = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | module | The module name. |
LogMessageType | type | The type. |
System.String | text | The text. |
ExceptionInfo | exceptionInfo | The exception information. This parameter can be null. |
Properties
ExceptionInfo
Gets or sets the ExceptionInfo of this message.
public ExceptionInfo ExceptionInfo { get; set; }
Property Value
Type | Description |
---|---|
ExceptionInfo |
Module
Gets or sets the module.
public string Module { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The module is an identifier for a logical part of the system. It can be a class name, a namespace or a regular string not linked to a code hierarchy.
Text
Gets or sets the text.
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets the type of this message.
public LogMessageType Type { get; set; }
Property Value
Type | Description |
---|---|
LogMessageType |
Methods
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |