Conversation
Use breakpoints in your browser instead.
There was a problem hiding this comment.
Console messages are not visible to the user. I think it's better to either remove the error handler completely (the client will then take care of it) or use mx.ui.error to show a message to the user.
|
Or use the "mendix/logger" |
|
@JelteMX The API does not allow to use the logger the AMD way logger.log("Hello World!")Would it better to allow it in the api and get the logger in the AMD way? require("mendix/logger", function(logger){
logger.log("Hello World!")
}) |
|
@Andries-Smit I don't know if it's possible get the logger in the AMD way. I'll ask around. If I look at the client API, the logger is actually required as: define([
..., "mendix/logger", ...
], function(..., logger, ...) {
window.logger = logger;The logger is always exposed globally.
The logger methods are basically wrappers for In the AppStoreWidgetBoilerplate (and what we now try to do consistently) is use |
Use breakpoints in your browser instead.