Table of Contents

Class AssetLogMessage

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

Provides a specialized LogMessage to give specific information about an asset.

public class AssetLogMessage : LogMessage, ILogMessage
Inheritance
AssetLogMessage
Implements
Inherited Members

Constructors

AssetLogMessage(Package, IReference, LogMessageType, AssetMessageCode)

Initializes a new instance of the AssetLogMessage class.

public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, AssetMessageCode messageCode)

Parameters

package Package

The package.

assetReference IReference

The asset reference.

type LogMessageType

The type.

messageCode AssetMessageCode

The message code.

Exceptions

ArgumentNullException

asset

AssetLogMessage(Package, IReference, LogMessageType, AssetMessageCode, params object[])

Initializes a new instance of the AssetLogMessage class.

public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, AssetMessageCode messageCode, params object[] arguments)

Parameters

package Package

The package.

assetReference IReference

The asset reference.

type LogMessageType

The type.

messageCode AssetMessageCode

The message code.

arguments object[]

The arguments.

Exceptions

ArgumentNullException

asset

AssetLogMessage(Package, IReference, LogMessageType, string)

Initializes a new instance of the AssetLogMessage class.

public AssetLogMessage(Package package, IReference assetReference, LogMessageType type, string text)

Parameters

package Package

The package.

assetReference IReference

The asset reference.

type LogMessageType

The type.

text string

Exceptions

ArgumentNullException

asset

Properties

AssetReference

Gets or sets the asset this message applies to (optional).

public IReference AssetReference { get; set; }

Property Value

IReference

The asset.

Character

public int Character { get; set; }

Property Value

int

File

public string File { get; set; }

Property Value

string

Line

public int Line { get; set; }

Property Value

int

Member

Gets or sets the member of the asset this message applies to. May be null.

public IMemberDescriptor Member { get; set; }

Property Value

IMemberDescriptor

The member.

MessageCode

Gets or sets the message code.

public AssetMessageCode MessageCode { get; set; }

Property Value

AssetMessageCode

The message code.

Package

Gets or sets the package.

public Package Package { get; }

Property Value

Package

The package.

Gets or sets the related references.

public List<IReference> Related { get; }

Property Value

List<IReference>

The related.

Methods

From(Package, IReference, ILogMessage, string, int, int)

public static AssetLogMessage From(Package package, IReference assetReference, ILogMessage logMessage, string assetPath, int line = 0, int character = 0)

Parameters

package Package
assetReference IReference
logMessage ILogMessage
assetPath string
line int
character int

Returns

AssetLogMessage

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.