Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SerializableLogMessage Class

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

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

    System.Object → SerializableLogMessage
    Derived from SerializableLogMessage: AssetSerializableLogMessage

    [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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    LogMessageExtensions.IsDebug(ILogMessage)
    LogMessageExtensions.IsVerbose(ILogMessage)
    LogMessageExtensions.IsInfo(ILogMessage)
    LogMessageExtensions.IsWarning(ILogMessage)
    LogMessageExtensions.IsError(ILogMessage)
    LogMessageExtensions.IsFatal(ILogMessage)
    LogMessageExtensions.IsAtLeast(ILogMessage, LogMessageType)
    LogMessageExtensions.IsAtMost(ILogMessage, LogMessageType)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation