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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -