1.2.1 • Published 1 month ago

log-into-file v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

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

1.2.0

1 month ago

1.2.1

1 month ago

1.1.4

1 month ago

1.1.3

1 month ago

1.1.1

1 month ago

1.1.0

1 month ago

1.1.2

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago