Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1146855

Summary: Unify the functionality of suffix property among handlers
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED NOTABUG QA Contact: Nikoleta Hlavickova <nziakova>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.4.0   
Target Milestone: ---   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-30 05:26:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kremensky 2014-09-26 09:01:35 UTC
Description of problem:
https://issues.jboss.org/browse/EAP6-150 brings a suffix attribute into size handler. But it behaves differently than in other handlers.

Version-Release number of selected component (if applicable):
 6.4.0.DR2

We have now three handers supporting suffix attribute:
 - periodic-rotating-file-hadler
 - periodic-size-rotating-file-handler
 - size-rotating-file-handler

Description is saying that the string has to be in a format which can be understood by java.text.SimpleDateFormat.
suffix1 = ".yyyy-MM-dd"
suffix2 = "HH:mm:ss"

periodic-rotating-file-hadler
 - suffix1 OK
 - suffix2 NOK

periodic-size-rotating-file-handler
 - suffix1 OK
 - suffix2 NOK

"failure-description" => "JBAS011554: The suffix (HH:mm:ss) is invalid. A suffix must be a valid date format and not contain seconds or milliseconds.",

size-rotating-file-handler
 - suffix1 OK
 - suffix2 OK

I believe this functionality should be unified.

Comment 1 James Perkins 2014-09-29 16:17:23 UTC
This was by design. The suffix on periodic-rotating-file-handler and periodic-size-rotating-file-handler are used to determine whether or not a file should be rotated.

The suffix on the size-rotating-file-handler is only used as a suffix to the file when the size limit is met. It's not used to determine when the file should be rotated. See https://issues.jboss.org/browse/PRODMGT-416 for details on why this was requested.

Comment 2 James Perkins 2014-09-29 16:18:58 UTC
Oh I forgot to mention. We don't allow rotation by suffix on anything smaller than a minute which is why :ss doesn't work. It does however work with the size-rotating-file-handler suffix because it's used purely as a suffix and not used to determine rotation.

Comment 3 Petr Kremensky 2014-09-30 05:26:07 UTC
Thanks for clarification James, I'll make sure this information makes it to the documentation.

Comment 4 JBoss JIRA Server 2015-04-28 15:04:48 UTC
John Doyle <jdoyle> updated the status of jira EAP6-150 to Closed