1.2.1 • Published 2 years ago
log-into-file v1.2.1
log-into-file
Install
$ npm i log-into-fileUsage
just log
import log from "log-into-file";
log("whatever! i love nimrod");
// saves a log like this -> whatever! i love nimrod - 16:29:22log but with tag
import log from "log-into-file";
log("this is a file with a tag (better)", "help");
// saves a log like this -> [HELP] this is a file with a tag (better) - 16:29:51Log Viewer
this is a visual application to see all the logs that are stored in the log folder, you can actualy manually add logs there if you have any and want to check how it works.
how to run
when running the the log command for the first time it will add in your package.json file a script
"scripts": {
"log-page": "node node_modules/log-into-file/paginator.js"
}the default will be 'log-page' and you can run it on your terminal
$ npm run log-pageif you want to change the default just run
log("your_text", "your_tag", "your_function_name");
// you can set your tag to undefined too!then you can run
$ npm run your-function-nameAuthor
Filippo Grassano @arerorero
for any tips -> Github