Core. Log

Log Class is used to display logging information in the interface.

Constructor

new Log()

Member

(static) maxCount :int

The maximum number of prints, more than this amount, is cleaned automatically
Default Value:
  • 20

Methods

clear()

Cleanup log

enable()

Activate the Log system, using the method Laya.init (800600, Laya.Log);

print(value)

Add log content.
Parameters:
Name Type Description
value String Need to increase the log content.

toggle()

Hide / display log panel