-
Notifications
You must be signed in to change notification settings - Fork 903
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
Larger default log file size and retention #852
Comments
Let's go with larger defaults of 10MB and allow it to be configurable on config settings. Sound good? |
10MB default and 50 files kept around |
Sure - if you're going to bother exposing a config setting, maybe also expose both values? Some regulated environments might have need to keep a ridiculous amount of history around - not my scenario - what you have proposed is perfectly fine for my current scenario. |
That was the plan. That's why I used the term "settings" ;) |
Just typing too fast and didn't get the number of files into the first response. |
Cool - all sounds good. |
By default, keep 50 10MB log files instead of 10 1MB files.
* stable: (maint) Skip log PowerShell resource assembly failures (GH-871) Fix - Uninstall zip: Path is empty string (maint) remove unused import (GH-854) Reset Exit Code between package runs (GH-852) Bump up the default log sizes (GH-867) NuGet.Core Errors Exit Code 1 (GH-853) Handle null values better (GH-836) Fix - Use 32 bit 7zip (GH-847) Tab Completion Enhancements (GH-857) Fix - Sometimes paths contain null chars
Thanks! |
We are starting to use Chocolatey for code deployment due to the limitations of NuGet (mainly to call a script from inside the package when processing OUTSIDE of Visual Studio).
This allows our code deploy packages to be called where we have no orchestration to trigger the install script (e.g. our developer workstations do not have Chef nor octopus installed).
I am making sure each and every file copy gets logged so that root cause is easy if a code deploy in production goes wrong.
In one of my packages there are so many files that this overflows all 11 chocolatey log files and I can't see the beginning of the log.
I understand that this is not necessarily a use case that chocolatey was designed around - but Chocolatey is very useful for code deploys for us and I think others may find the same.
It would be helpful if the size limit on each log file were higher by default. 1 MB is a pretty small limit.
If the default size of each could be, say, 100 MB, then I may not need any additional configuration controls. I think this would be the preferred option as I would not have to reconfigure the default chocolatey install.
If the size must remain 1MB, it would be helpful to have configuration control over how many old versions are kept.
The text was updated successfully, but these errors were encountered: