loglvl

1.0.1 • Public • Published

LogLVL

Use query strings to select the log level you want to see in your console. e.g ?loglevel=error will show only the console.error logs from your code.

How to use

npm install loglvl
# or
yarn add loglvl
import console from 'loglvl'

// as usual use your console
console.log()
console.error()
console.warn()
// or any other console methods

?loglevel

will show all console.log calls

?loglevel=warn

will show all console.warn calls

?loglevel=error

will show all console.error calls

?loglevel=verbose

will show all (log, error, warn) calls

Readme

Keywords

none

Package Sidebar

Install

npm i loglvl

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

96.2 kB

Total Files

10

Last publish

Collaborators

  • alexrqs