Click or drag to resize

ClientLog Class

Singleton object that provides functionality to send messages back to the client. Messages are also logged on the server.
Inheritance Hierarchy
SystemObject
  AxiomCore2.LogClientLog

Namespace: AxiomCore2.Log
Assembly: Canary.Axiom.Session (in Canary.Axiom.Session.exe) Version: 25.6.0.25344+3070493948bf7d32a86bd3e9a8bcf4cc9a5b1929
Syntax
C#
public class ClientLog : ILog

The ClientLog type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberUserScript Returns log class used by scripting to write messages to the Axiom client and service log.
Public propertyStatic memberUserScriptLegacyObsolete.
Provides backwards compatibility for legacy logging to allow previous client messaging to function.
Top
Methods
 NameDescription
Public methodError(String) Log an error message.
Public methodError(String, Exception) Log an error message.
Public methodInfo Log an info message.
Public methodStatic memberSetShouldSuppressClientMessage 
Public methodWarn(String) Log a warning message.
Public methodWarn(String, Exception) Log a warning message.
Top
Example
Use the static UserScript property to access this class.
C#
ClientLog.UserScript.Info("Hello World");
This will send a "Hello World" message to the client and also log the message in Canary message log.
See Also