Skip to content

kenshinman/dev-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Logger

Installation

yarn add dev-logger-simple or npm install dev-logger-simple

Usage

var devLogger = require('dev-logger-simple');

devLogger("this output", "that output")

//output
//arg 1 => "this output"
//arg 2 => "that output"

Simply way to make sure your console.log statements are only logged in development environment.

Takes single or multiple parameters and they are logged in order of appearance.

PS: My first NPM package too.

Suggestions are welcome

About

Only log to the console when in development mode. This helps by saving time when of mopping up all the console.log lines of code in your projet

Resources

License

Stars

Watchers

Forks

Packages

No packages published