Console
console will report errors, warnings or other log informations generated by Cocos Creator editor and engine. Information with different priority will show in different color:
- Log:gray text, is normally used to indicate operation on-going.
- Info:blue text, is used to indicate important prompt information.
- Success:green text, is used to indicate that current operation has successfully done.
- Warn:yellow text, is used to warn user to deal with the abnormal situation which won't influence operations if not being dealt with.
- Error:red text, indicates gross error and measures must be took before going on to the next operation or running the game.
When there are too much information in console, you can filter these information effective by widgets in console. The operations include:
- Clear Clear all the current information in console panel.
- Filter input Filter the information in console according to the input text. If the
Regex
next to it is checked, then the input text will be took as a regular expression to match the text. - Information levels You can choose one information level from this drop-down menu. From log level to error level, console will only show information in specific level. The default option
All
represents information in all levels will be showed. - Merge same type information When this selection is being activated, the same and repeat information will be merged into one, but there will be yellow numbers next to the information to prompt how many information of the same type have been merged.
Continue on to read about Toolbar.