Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

How do we rotate Express-PouchDB's logs? #53

Open
yaronyg opened this issue Jul 28, 2015 · 5 comments
Open

How do we rotate Express-PouchDB's logs? #53

yaronyg opened this issue Jul 28, 2015 · 5 comments

Comments

@yaronyg
Copy link
Member

yaronyg commented Jul 28, 2015

Express-PouchDB generates its own logs. We either need to figure out how to redirect the information into our logs or we need to figure out how to make sure the logs don't grow without bounds.

@yaronyg
Copy link
Member Author

yaronyg commented Jan 5, 2016

This is a security issue because an attacker could potentially figure out how to cause events that trigger a large number of log entries and so fill up the device.

@yaronyg yaronyg added the Icebox label Feb 9, 2016
@yaronyg yaronyg added this to the V1 milestone Aug 3, 2016
@janl
Copy link

janl commented Aug 25, 2016

would syslog support be an option?

@garrensmith
Copy link

That depends on whether they are only using express-pouchdb on the server or are using in Cordova as well. I don't think you can use syslog with Cordova.

@yaronyg
Copy link
Member Author

yaronyg commented Aug 29, 2016

Remember we are recording these logs locally on an Android or iOS device. So I doubt we'll have a syslog deamon. We probably just want some kind of simple file format (we are using Winston at the moment) and we need to make sure we rotate those logs so they don't fill up the device.

@janl
Copy link

janl commented Aug 30, 2016

Gotcha, thanks!

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

No branches or pull requests

3 participants