logrotatewin icon indicating copy to clipboard operation
logrotatewin copied to clipboard

Merged changes made outside of Github

Open plecos opened this issue 8 years ago • 13 comments

Changes made outside of Github but referenced in threads on SoureForge have been merged here.

plecos avatar Jan 13 '17 18:01 plecos

If you want, I can send you a compiled exe of this pull request for testing. If you find it is working well and addresses the issues, I will then merge the pull request and post to sourceforge.

Let me know...you will need to send me your email address so I can attach the setup program.

Regards, Ken

From: "Dennis Hoer" [email protected] To: "plecos/logrotatewin" [email protected] Cc: "Ken Salter" [email protected], "Author" [email protected] Sent: Saturday, January 14, 2017 1:41:53 PM Subject: Re: [plecos/logrotatewin] Merged changes made outside of Github (#13)

@dhoer commented on this pull request.

Looks good overall. Just a few minor tweaks needed.

In logrotate/app.config :

@@ -1,3 +1,3 @@ - - -<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> +

It looks like this file has invalid chars introduced into it.

In logrotate/Content/README.txt :

+https://sourceforge.net/projects/logrotatewin/ + +Requirements: + +.NET Framework v4.5 or better + +Installation: + +Run the setup.exe to install.
+ +This installation will copy the executable, README.txt, gnu_license.txt, and a sample .conf file to the folder you specify. + +Release Notes: + +0.0.0.17- 13 Jan 2017 (beta) - merge changes from Github contributors

Should this stay in beta?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

plecos avatar Jan 16 '17 12:01 plecos

I sent you an email. Question: have you thought about building, unit and integration testing this with appveyor?

dhoer avatar Jan 17 '17 19:01 dhoer

Got your email and sent a reply. As to your question, I'm not familiar with appveyor.

plecos avatar Jan 17 '17 19:01 plecos

Thanks. https://www.appveyor.com/ is a windows continuous integration tool that is free to opensource projects. You check-in a appveyor.yml that describes the steps to build and test your code: https://www.appveyor.com/docs/build-configuration/.

dhoer avatar Jan 17 '17 20:01 dhoer

I'm having issues with comments. Logrotatewin sucks up the next uncommented line as part of the comment and throws Unknown directive error at the end, e.g.,

# my comment

c:\test.log {
  ...
}

Would result in the following output:

...
logrotate: read line # my comment c:\test.log {
logrotate: Skipping comment
...
logrotate: Unknown directive }

Let me know if you would like this written up as another issue.

dhoer avatar Jan 23 '17 17:01 dhoer

Yes please so I can track it better.

plecos avatar Jan 23 '17 17:01 plecos

Done: Comments in conf causes Unknown directive error #14

dhoer avatar Jan 23 '17 17:01 dhoer

On windows is SCHTASKS the best way to run logrotate periodically?

dhoer avatar Jan 23 '17 17:01 dhoer

Yeah I think so, at this point at least.

plecos avatar Jan 23 '17 18:01 plecos

I have the chef cookbook close to release. Just need to finish up the readme. Here is an example of using appveyor to lint, unit, and integration test on windows 2012r2: https://ci.appveyor.com/project/dhoer/chef-windows-logrotate

dhoer avatar Jan 26 '17 15:01 dhoer

The only other issue I ran into is that when I have the schtask running every hour and I do not set the -s c:/path/to/logrotate.status, it ignores the frequency and will rotate the logs every hour. When I add it, then it works as expected. Let me know if you would like an issue on this as well.

Thanks for getting this out there for me. It is much appreciated!

dhoer avatar Jan 26 '17 15:01 dhoer

One more interesting thing to mention. If the following vars are global (at the top), the logrotate will not keep a test.log file after it rotates, but if I have them inside e.g. c:\test.log { }, then it does.

missingok
compress
delaycompress
copytruncate
notifempty

I don't know if this is expected behavior or not.

dhoer avatar Jan 26 '17 21:01 dhoer

This cookbook is now released: https://supermarket.chef.io/cookbooks/windows_logrotate

dhoer avatar Jan 26 '17 23:01 dhoer