log-into-file
v1.2.1
Published
this package is used to log the data into a file and view the data in a desktop application
Downloads
26
Maintainers
Readme
log-into-file
Install
$ npm i log-into-file
Usage
just log
import log from "log-into-file";
log("whatever! i love nimrod");
// saves a log like this -> whatever! i love nimrod - 16:29:22
log 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:51
Log 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-page
if 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-name
Author
Filippo Grassano @arerorero
for any tips -> Github