While developing we strongly recommend using logs for errors detection.
DHTMLX permits to control logging in two ways:
If any error occurs during data processing, the client-side data processor object will receive the "error" action containing short info about the problem (full info will be written to the log).
gridConn.enable_log("path");
When a critical error occurs, all log records for current session (full error info) will be sent to the client and shown in a browser (useful for debugging, not recommended for production):
gridConn.enable_log("path",true);
During the development process you may need to write some custom data to the log (can be useful for custom server-side events).
To add a custom text or data to the log file:
gridConn.enable_log("temp.log",true);
LogManager.getInstance().log("any text here");
Back to top