I have tested the manual execution of the logrotatewin utility and have made the following observations:
++ With the test.log in C:, the logrotatewin utility successfully rotates it
++ With the test.log in F:, the logrotatewin utility reports to the following error:
logrotate: Exception: Input string was not in a correct format.
logrotate: StackTrace: at System.Number.StringToNumber(String str, NumberStyl
es options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo in
fo)
at logrotate.Program.AgeOutRotatedFiles(logrotateconf lrc, FileInfo fi, Strin
g rotate_path)
at logrotate.Program.RotateFile(logrotateconf lrc, FileInfo fi)
at logrotate.Program.Main(String[] args)
Looks like the the utility is unable to rotate the log if it is located in any other drive other than C:
Please advice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have tested the manual execution of the logrotatewin utility and have made the following observations:
++ With the test.log in C:, the logrotatewin utility successfully rotates it
++ With the test.log in F:, the logrotatewin utility reports to the following error:
logrotate: Exception: Input string was not in a correct format.
logrotate: StackTrace: at System.Number.StringToNumber(String str, NumberStyl
es options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo in
fo)
at logrotate.Program.AgeOutRotatedFiles(logrotateconf lrc, FileInfo fi, Strin
g rotate_path)
at logrotate.Program.RotateFile(logrotateconf lrc, FileInfo fi)
at logrotate.Program.Main(String[] args)
Looks like the the utility is unable to rotate the log if it is located in any other drive other than C:
Please advice.