This package aims to log the message with caller function's name and location
npm install log4fnsA very lightweight Javascript utility that logs the function name and location from where it is called. Useful for bug tracking during software development. Support both ESM and CommonJS.
This project uses node and npm.
```
npm install log4fns
javascript
// ESM
import Log from "log4fns"
// CommonJS
const Log = require("log4fns").default
`$3
`javascript
// If you are using a remote enviornment and want to get the correct local time
// or you want to change the default timezone
Log.setTimeZone("Your time zone")// If you need to ouput the function name and path in Production
Log.setShowDetailInProduction(true)
`$3
`javascript
/* index.js /
import Log from "log4fns"
function test(){
Log("hello world")
}
test()
`
output
`
12/3/2022, 2:34:37 AM | index.js:3 | test | hello world
``