Logger

The internal logger used by the SmartFoxServer Client API.


Get a reference to the API logger by means of the SmartFox#logger property. Accessing the logger is useful to control the client-side logging level and customize the logged information.

Members

level :number

Current logging level.

Messages with a level lower than this value are not logged.

Type:
  • number
Default Value

showOrigin :boolean

Indicates whether the origin (class name) of the logged messages should be displayed or not.
Type:
  • boolean
Default Value
  • true

showTime :boolean

Indicates whether the time of the logged messages should be displayed or not.
Type:
  • boolean
Default Value
  • true