Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capped logs #306

Open
ORESoftware opened this issue Oct 20, 2015 · 2 comments
Open

Capped logs #306

ORESoftware opened this issue Oct 20, 2015 · 2 comments

Comments

@ORESoftware
Copy link

I am looking for a way to stream to a log file with Bunyan, but have a capped log file, something like this:

https://www.npmjs.com/package/caprese

is there a way to do this with Bunyan?

thanks

@timruffles
Copy link

I guess you'd have to write your own stream that handled the capping functionality. If caprese is flexible enough it could be the basis for this stream.

@Rcomian
Copy link

Rcomian commented Feb 21, 2016

There is a pull request for a feature where we rotate by filesize: #288

I've also been working on my own rotating file stream component that will cap individual files as well as the size of the overall set of archives: bunyan-rotating-file-stream

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

No branches or pull requests

4 participants