Configure which log theme to use in the console (by default theme is set to light).
Set logging theme via:
| Way | Description |
|---|---|
| Query Parms | For any page using TOP |
| Log API | Requires set up on the page |
toplogtheme sets the log theme to use for the debug logs in the console.
Log.setTheme sets the log theme to use for the debug logs in the console.
var Log = TOP.logging.Log;
Log.setTheme('dark');Check out Log.data to see what log theme is set:
TOP.logging.Log.data().themewill show the theme being used:
"light"Some browsers have a dark theme available for their dev tools. If using dark theme in your browser dev tools, then the log theme needs to be set to dark to see the TOP logs properly.
Once set, the log theme is saved to localStorage so it only needs to be set once per browser.