Class SFS2X.Logger
The internal logger used by the SmartFoxServer 2X client API.
You can get a reference to the Logger by means of the SmartFox.logger property. Accessing the logger instance allows to control the client-side logging level by means of the setLevel() method.
Method Summary
Method Detail
-
setLevel(level)Sets the current logging level.
Debug messages with a level lower than this value are not logged.
The available log levels are contained in the LogLevel class. The default value is LogLevel.INFO.- Parameters:
- {Number} level
- The minimum logging level.
- See also:
- SFS2X.LogLevel