Logging Theme

Configure which log theme to use in the console (by default theme is set to light).

How To

Set logging theme via:

Way Description
Query Parms For any page using TOP
Log API Requires set up on the page

Query Params

toplogtheme sets the log theme to use for the debug logs in the console.

Log API

Log.setTheme sets the log theme to use for the debug logs in the console.

var Log = TOP.logging.Log;
Log.setTheme('dark');

Theme

Check out Log.data to see what log theme is set:

TOP.logging.Log.data().theme

will show the theme being used:

"light"

Details

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.