Click or drag to resize

Logger Class

The internal logger used by the SmartFoxServer 2X client API.
Inheritance Hierarchy
SystemObject
  Sfs2X.LoggingLogger

Namespace:  Sfs2X.Logging
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class Logger

The Logger type exposes the following members.

Properties
  NameDescription
Public propertyEnableConsoleTrace
Indicates whether or not the output of logged messages to the console is enabled.
Public propertyEnableEventDispatching
Indicates whether dispatching of log events is enabled or not.
Public propertyLoggingLevel
Determines the current logging level.
Top
Methods
  NameDescription
Public methodCode exampleAddEventListener
Registers a delegate method for log messages callbacks.
Public methodRemoveEventListener
Removes a delegate method for log messages callbacks.
Top
Remarks
You can get a reference to the Logger by means of the SmartFox.Logger property. Accessing the logger can be useful to control the client-side logging level, enable or disable the output towards the console and enable or disable the events dispatching. When logger events are enabled, you can add your own listners to this class, in order to have a lower access to logged messages (for example you could display them in a dedicated panel in the application interface).
See Also