How to add a message to the Debug Log in the viewer with JavaScripts
I would like to add a message to the Debug Log screen (Ctrl-Shift-~) with JavaScript. I have my own module from which I want to write messages to the log.
Does anybody know how this can be done?
0
-
Hi Luuk,
I learned from our developer, you enter this into the viewer console. Here is an example:geocortex.framework.applications[0].event("TraceEvent").publish({message: "test message", source: "Custom", level: "info", timestamp: new Date(Date.now())})
Cheers
Long0 -
Hi Long,
thanks for your quick reply. Your solution is perfect. I can now send text to the viewer console from JavaScript.
Thanks.
Luuk0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer