date - WebLogic 10.3.6 java.text.SimpleDateFormat variables does not work in log file name -


i'm trying set own log file name format , testing this:

to include time , date stamp in file name when log file rotated, add java.text.simpledateformat variables file name. surround each variable percentage (%) characters.

for example, if file name defined myserver_%yyyy%_%mm%_%dd%_%hh%_%mm%.log, log file named myserver_yyyy_mm_dd_hh_mm.log.

when log file rotated, rotated file name contains date stamp. example, if log file rotated first time on 2 april, 2003 @ 10:05 am, log file contains old messages named myserver_2003_04_02_10_05.log00001.

but result is:

-rw-rw-r-- 1 weblogic weblogic 20k jan 21 13:00 myserver_yyyy_mm_dd_hh_mm.log

any ideas, can wrong?

because, not rotated log file. current log, , named correctly after real rotation.

thanks devwebcl


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -