In linux/solaris, I can specify
 -Xloggc:/my/logs/sourcecode-gc-${NOW}.log 
And get a logfile named as such
 /my/logs/sourcecode-gc-1008-0938.log 
with the last time of startup as past of the log filename

But if I try to do something similar in Windows
 -Xloggc:c:\my\logs\sourcecode-gc-${NOW}.log 
I get a logfile named
 c:\my\logs\sourcecode-gc-${NOW}.log 
with the variable text as past of the log filename

Does tomcat on Windows not support variables in the GC filename?
I've tried a dozen different combinations
  $DATE  //    ${%DATE%}  //  $[%DATE%]  //  $(%DATE%)
  ${DATE}  //  $[DATE]  //  $(DATE)  //  $DATE  //  %DATE  //  %NOW%
  `%DATE%`  //  '%DATE%'  //  `cmd /c now /t`  //  'cmd /c now /t'
  %Y  //  %YYYY
and several other iterations
but the logfilename contains the variable that I was hoping would be
replaced with a timestamp.

and I can't seem to find a solid reference for Windows GC log filenames.




--
View this message in context: 
http://tomcat.10.n6.nabble.com/gc-log-filename-variables-in-windows-tp4987672.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to