Skip to content

A js console log wrapper, output call place or call stack of console.log()

License

Notifications You must be signed in to change notification settings

at86/watsen_log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watsen_log

Output call place or call stack of console.log()

With this output in ide can click jump to the code.

CALL_POINT

This is the default option, will output call poin up the real log content.

var watLog = require('watsen_log')

function cs() {
  console.log('hello world')
}
cs()

output :

D:\code\watvue\cs\cs\demo.js:4:11
hello world

CALL_STACK

This is the default option, will output call stack up the real log content.

var watLog = require('watsen_log')
watLog.logType(watLog.CODE_STACK)

function cs() {
  console.log('hello world')
}
cs()

output :

D:\code\watvue\cs\cs\demo.js:7:1
D:\code\watvue\cs\cs\demo.js:5:11
hello world

About

A js console log wrapper, output call place or call stack of console.log()

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published