Log
Log, Log.Message, and Log.Level
Last updated
Log, Log.Message, and Log.Level
Last updated
The Log class handles script logging and error reporting
Clears all messages in this console.
Syntaxpublic Clear ()
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Clears all messages in this console with the given logLevel.
SyntaxParameters
logLevel
The LogLevel to clear from the log. Multiple loglevels can be cleared in a single cal.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Clears all messages in this console with the given ScriptId.
SyntaxParameters
scriptId
The ScriptId to clear from the log.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Clears all messages in this console with the given tag.
SyntaxParameters
tag
The tag to clear from the log.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The maximum number of messages to store on this console.
Value: 128
SyntaxReturns
The maximum number of messages stored by the console.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
All current log messages.
SyntaxValue
All currently stored log messages.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Writes a debug message to the server log.
SyntaxParameters
message
The message to be logged.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Writes a debug message to the server log.
SyntaxParameters
logLevel
Message level
message
The message to be logged.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Writes a debug message to the server log.
SyntaxParameters
tag
A freeform string tag for filtering the message.
message
The message to be logged.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Writes a message to the script console.
SyntaxParameters
logLevel
LogLevel of the message.
tag
Tag for the message.
message
Message to log.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Represents a single console message.
public struct Log.Message
Message severity for filtering.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Source script id.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Free form tag which can be used to filter messages.
SyntaxValue
The tag of the message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
The text of the message.
SyntaxValue
The text of the message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Time the message was written.
SyntaxValue
The timestamp of the message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
String representation of the message.
SyntaxReturns
String representation of the message.
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
May 28, 2019 16:02
[System.Flags] public enum LogLevel
Error
Error messages.
Info
Basic informational messages.
Warning
Warning messages.
Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
public const ConsoleHistory
public LogLevel { get; }
The of the message.
public ScriptId { get; }
The of the source of the message.
public Tag { get; }
public Text { get; }
public TimeStamp { get; }
public override ToString ()
:
Used by to filter messages.