Log.Message

Log.Message Struct

Represents a single console message.

Syntax

public struct Log.Message

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from ValueType.

Public Properties

[read-only]
 
LogLevel LogLevel . Message severity for filtering.
[read-only]
 
ScriptId ScriptId . Source script id.
[read-only]
 
Tag string . Free form tag which can be used to filter messages.
[read-only]
 
Text string . The text of the message.
[read-only]
 
TimeStamp DateTime . Time the message was written.

Public Methods

override
ToString () : string
String representation of the message.

Member Details

LogLevel Property

Message severity for filtering.

Syntax

public LogLevel LogLevel { get; }

Value

The Sansar.Script.LogLevel of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

ScriptId Property

Source script id.

Syntax

public ScriptId ScriptId { get; }

Value

The Sansar.Script.ScriptId of the source of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Tag Property

Free form tag which can be used to filter messages.

Syntax

public string Tag { get; }

Value

The tag of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Text Property

The text of the message.

Syntax

public string Text { get; }

Value

The text of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

TimeStamp Property

Time the message was written.

Syntax

public DateTime TimeStamp { get; }

Value

The timestamp of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

ToString Method

String representation of the message.

Syntax

public override string ToString ()

Returns

String representation of the message.

Remarks

 

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.