logsh
v1.0.7
Published
default console logger overrider
Downloads
2
Readme
Logsh: JS/TS console functions overrider
You can view logs from default javascript/typescript console functions in your terminal.
This module supports only nodejs.
Installation
npm i logsh
Features
- [x] supports file stack frame
- [ ] supports custom color of console functions output
- [ ] supports custom format of date time
- [ ] supports custom format of output
Usage
const logsh = require("logsh");
logsh.init();
or
import logsh from "logsh";
logsh.init();
then you can use console functions like this:
console.log("Hello world!"); // general console.log function (not overrided)
console.debug("Hello world!");
console.info("Hello world!");
console.warn("Hello world!");
console.error("Hello world!");