Skip to content
/ scons Public

JS console with automatic line, file and function name

License

Notifications You must be signed in to change notification settings

ip413/scons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Signed console (scons)

Signed console will automaticly print time, function, file in fixed width line. Useful for faster debugging, when you don't want to write any identification details for every log, like:

console.log(1); console.log("end") // etc.

Use it like standard console, for example:

var scons = require("scons");
scons.log()

will print

-21:11:33.315-----------------------------------/someFile.js:6:11 someFunction() -

and

scons.log("abc", {a: "a"})

in function "someFunction()" will print

-21:11:33.315----------------------------------------------/file.js:6:11 someFunction() -
abc
{ a: 'a' }

Usage

scons.log(...) scons.warn(...) scons.error(...)

License

MIT

About

JS console with automatic line, file and function name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published