NsLogger

Logger with namespace support for node and browser. This is the browser demo!

Open the console to see the logs.
Check the source code to understand what's happening.

Set localStorage

Configure the severity levels that are displayed in the console (0=Trace ; 1=Log ; 2=Warn ; 3=Error ; 4=Silent).

localStorage.setItem('NsLogger', 'ModuleA:Feature1 = 0; ModuleA:Feature2 = 1; ModuleA:* = 2; ModuleB = 3; * = 4');

Remove localStorage

localStorage.removeItem('NsLogger');

Logger level state

Trigger console events