# Logging Level

Configure which log level will show up in the console (by default all levels except `debug` and `verbose` are enabled).

## How To

Set logging level via:

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

### Query Params

`toploglevel` sets which log level of logs will show up in the console.

Multiple levels can be set by delimiting with a pipe character:

- http://.....html?toplogenabled=true&toploglevel=error|warn

### Log API

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
    });

## Levels

Check out Log.data to see what log levels are available / enabled:

    TOP.logging.Log.data().levels

will show something like the following:

    {
        debug  : false
        error  : true
        info   : true
        verbose: false
        warn   : true
    }