Skip to content
This repository has been archived by the owner on Jul 9, 2018. It is now read-only.

Log to file feature #25

Open
Meldiron opened this issue May 10, 2018 · 0 comments
Open

Log to file feature #25

Meldiron opened this issue May 10, 2018 · 0 comments

Comments

@Meldiron
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant