Table of Contents

Class SerializableLogMessage

Namespace
Stride.Core.Diagnostics
Assembly
Stride.Core.dll

A class that represents a copy of a LogMessage that can be serialized.

[DataContract]
[Serializable]
public class SerializableLogMessage : ILogMessage
Inheritance
SerializableLogMessage
Implements
Derived
Extension Methods

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

message LogMessage

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

module string

The module name.

type LogMessageType

The type.

text string

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

ExceptionInfo

Module

Gets or sets the module.

public string Module { get; set; }

Property Value

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

string

Type

Gets or sets the type of this message.

public LogMessageType Type { get; set; }

Property Value

LogMessageType

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.