akphelps - 2017-06-22

Firstly, thanks for the port of logrotate, makes my life much easier. I've come across something that breaks logrotatewin. In my situation, I have apache tomcat 8.5, the path is C:\apache\8.5\logs. I have tried wrapping it with quotes or no quotes.

When parsing the conf file, here is what I get with -v -d flags.

C:\Program Files (x86)\LogRotate>logrotate -d Content/logrotate.conf
logrotate: Debug option set to true
logrotate: Verbose option set to true
logrotate: Content/logrotate.conf Adding to config files to process
logrotate: Parsing configuration file Content/logrotate.conf
logrotate: read line "C:\apache\8.5\logs\*.log"
logrotate: Unknown directive "C:\apache\8.5\logs\*.log"
logrotate: read line {
logrotate: Processing new section
logrotate: Will process file path "C:\apache\8.5\logs\*.log"
logrotate: read line prerotate
logrotate: Setting prerotate to True
logrotate: read line echo THIS IS A TEST
logrotate: read line endscript
logrotate: read line copytruncate
logrotate: Setting copytruncate to True
logrotate: read line size 10k
logrotate: Setting size to 10240
logrotate: read line rotate 14
logrotate: Setting rotate to 14
logrotate: read line nocreate
logrotate: Setting nocreate to False
logrotate: read line nocompress
logrotate: Setting nocompress to False
logrotate: read line olddir "C:\apache\8.5\logs\archive"
logrotate: Setting olddir to "C:\apache\8.5\logs\archive"
logrotate: read line start 0
logrotate: Setting start to 0
logrotate: read line }
logrotate: Processing "C:\apache\8.5\logs\*.log"
logrotate: Exception: Illegal characters in path.
logrotate: StackTrace:    at System.IO.Path.CheckInvalidPathChars(String path, B
oolean checkAdditional)
   at System.IO.Path.GetFileName(String path)
   at logrotate.Program.Main(String[] args)

I may just end up renaming my directory, but thought I'd bring it to your attention. Thanks!

 

Last edit: akphelps 2017-06-22