UNPKG

illumut

Version:

Plugin for JS logger loglevel which allows enable/disable debug output dynamically

24 lines (22 loc) 563 B
<!DOCTYPE html> <html> <head> <title>loglevelDebug()</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="../dist/loglevel-debug.js"></script> <script> // type debug.enable('*') in // the console and refresh :) var a = loglevelDebug('worker:a'); var b = loglevelDebug('worker:b'); setInterval(function(){ a('doing some work'); }, 1000); setInterval(function(){ b('doing some work'); }, 1200); </script> </head> <body> </body> </html>