logule icon indicating copy to clipboard operation
logule copied to clipboard

Log to file feature

Open Meldiron opened this issue 7 years ago • 0 comments

It would be awesome to do something like: var log = require('logule').init(module); log.toFile();

What it will do is:

  1. Log to te console (as normal)
  2. Create logs folder and add files there. Each time app starts, create file in log called "10.5.2018_20:54:22.log" and each time I log something it also logs into the file (exactly the same way as its in console - not JSON)

I know I can do it myself but it would be awesome to be able do it this way, so I dont have to write 100+ likes each time I create new project where I want ot use logule.

Meldiron avatar May 10 '18 18:05 Meldiron