-
Notifications
You must be signed in to change notification settings - Fork 242
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
Any way to produce less log? #126
Comments
Hmm. Good question. It's all in winston. It should be possible to tweak that. I typically just have it all on logrotate.d. You could cheat and make the files a symlink to |
https://www.npmjs.com/package/winston#using-logging-levels would be how to set the log level per transport. |
I was actually thinking about some configurable options in config.ylm, but I guess symlink would do the job. |
Oh yeah, totally. It's best done via a setting in the yml, but until I or someone gives a PR for it, you can cheat by symlinking :) |
@tanus10 I'm looking into making a PR for this. Would the ability to set the log level for the file transport ( which writes |
@airdrummingfool any progress on this PR? My log files are getting pretty huge and the constant writing to disk is quite annoying and unnecessary. |
@nphil thanks for the nudge... I'd completely forgotten about this. I managed to find the code I was working with in my |
Since these are, in many case, running on a SD card + Raspberry pi, once everything works, it is desirable to have less or even no log at all to preserve SD card life.
Is there any way or a future plan to reduce amount of log it produces?
The text was updated successfully, but these errors were encountered: