Adding Logging to the Engine

    Currently, the Log information in Cocos Creator is stored in the form of an error message table independent of the engine, which is stored in the under the engine directory. In the engine code, it is not allowed to write logs, warnings, errors and other information directly in the form of strings. It must be written in the following three APIs:

    The main purpose of this is to reduce the package body occupied by the string in the engine source code.

    Due to historical reasons, there is currently no strict priority order for sorting, and newly-built modules can simply be postponed. In the future, we will do better sorting management and sorting.

    The specifications for writing specific error messages are as follows:

    The information supports the use of parameter receivers such as %s, , and %f. When running the output LOG, it will be spliced ​​into the information in the order of the parameters.

    After EngineErrorMap is modified, if you want the call in the code to take effect, you need to execute it in the engine directory