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
add log-rotate function on windows #34265
Comments
ping @twangboy do you think it would be possible to implement something like this? |
@Ch3LL Is this a feature. Does Linux handle the logs automatically? How would this affect Linux? |
#26195 See this thread started in 2015 this is a duplicate |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
I need this feature. |
Pleasse reopen and suggest a solution. Thank you |
I think this is handled for Salt logs with Unless you're talking about the actual Windows logs... |
Thank you - these settings would be a solution. Only that on a 2016.11.3 minion, from these 3 settings only the level takes effect: |
Looks like those options were added in 2017.7. |
On a 2018.3.3 client: very nice log file rotation :-) |
linux can rotate log easily, windows not,so would you support rotate log?
I see code:
https://github.com/saltstack/salt/blob/develop/salt/log/setup.py#L639
function setup_logfile_logger:
handler = WatchedFileHandler(log_path, mode='a', encoding='utf-8', delay=0)
if config logrotate, then change to:
handler = RotatingFileHandler(log_path, maxBytes=config.maxBytes,backupCount=configy.backupCount) that will work as I do on my own environment.
Other need is adding that code and add conf in config.py,
That really helps a lot on windows platform as log-rotate is hard on windows-self.
So would you support it? Thanks
The text was updated successfully, but these errors were encountered: