WebLogic 10.3.6 java.text.SimpleDateFormat 变量在日志文件名中不起作用

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

我正在尝试设置我自己的日志文件名格式并对此进行测试:

To include a time and date stamp in the file name when the log file is rotated, add java.text.SimpleDateFormat variables to the file name. Surround each variable with percentage (%) characters.

For example, if the file name is defined to be myserver_%yyyy%_%MM%_%dd%_%hh%_%mm%.log, the log file will be named myserver_yyyy_mm_dd_hh_mm.log.

When the log file is rotated, the rotated file name contains the date stamp. For example, if the log file is rotated for the first time on 2 April, 2003 at 10:05 AM, the log file that contains the old messages will be named myserver_2003_04_02_10_05.log00001.

但结果是:

-rw-rw-r-- 1 weblogic weblogic 20K Jan 21 13:00 myserver_yyyy_MM_dd_hh_mm.log

有什么想法,有什么问题吗?

因为,这不是循环日志文件。这是当前日志,真正轮换后会正确命名。

感谢 devwebcl