[jboss-jira] [JBoss JIRA] (LOGMGR-186) Rotation at other than midnight without changing time zone
Osamu Nagano (JIRA)
issues at jboss.org
Fri Dec 8 02:49:00 EST 2017
[ https://issues.jboss.org/browse/LOGMGR-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503257#comment-13503257 ]
Osamu Nagano edited comment on LOGMGR-186 at 12/8/17 2:48 AM:
--------------------------------------------------------------
This is personally tested and worked on EAP using a {{<custom-handler>}}. {{logging.properties}} should be edited to choose a proper constructor (using a setter doesn't work).
{code}
handler.CUSTOM.constructorProperties=fileName,append,hourOfDay
{code}
I had changed {{PeriodicRotatingFileHandler}} directly rather than subclassing it because the rotation logic is mostly in the class as a private method.
was (Author: osamu.nagano):
This is personally tested and worked on EAP using a {{<custom-handler>}}. {{logging.properties}} should be edited to choose a proper constructor.
{code}
handler.CUSTOM.properties=enabled,append,fileName,suffix,hourOfDay
{code}
I had changed {{PeriodicRotatingFileHandler}} directly rather than subclassing it because the rotation logic is mostly in the class as a private method.
> Rotation at other than midnight without changing time zone
> ----------------------------------------------------------
>
> Key: LOGMGR-186
> URL: https://issues.jboss.org/browse/LOGMGR-186
> Project: JBoss Log Manager
> Issue Type: Enhancement
> Components: core
> Reporter: Osamu Nagano
>
> Add ability to rotate at other than midnight without changing time zone.
> Background: a global company distributes hosts around the world and all hosts configure the same time zone, UTC. In some zone, it's the peak time at midnight and the log file is divided by the rotation. They want to make the rotation time be configurable.
> WebLogic has such a configuration, "Begin Rotation Time":
> https://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/logging/RotateLogFiles.html
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list