Configure which log level will show up in the console (by default all levels except debug and verbose are enabled).
Set logging level via:
| Way | Description |
|---|---|
| Query Parms | For any page using TOP |
| Log API | Requires set up on the page |
toploglevel sets which log level of logs will show up in the console.
Multiple levels can be set by delimiting with a pipe character:
Log.updateLevels sets which log level of logs will show up in the console.
var Log = TOP.logging.Log;
Log.updateLevels({
error : true,
warn : true
});Check out Log.data to see what log levels are available / enabled:
TOP.logging.Log.data().levelswill show something like the following:
{
debug : false
error : true
info : true
verbose: false
warn : true
}