Hoppa till huvudinnehållet

How to add a message to the Debug Log in the viewer with JavaScripts

Kommentarer

2 kommentarer

  • Longguang Fan

    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

     

    Long
    0
  • Luuk Schaminée
    Hi Long,

     

    thanks for your quick reply. Your solution is perfect. I can now send text to the viewer console from JavaScript.

     

    Thanks.

     

    Luuk
    0

Du måste logga in om du vill lämna en kommentar.