The log rotation isn't respected due to more that one DebugImpl instance manage the rotation. (see https://bugster.forgerock.org/jira/browse/OPENAM-4614 for more explication)
The difference between
OPENAM-4614 is the way to share a same Printwriter :
String nm = (String) debugFileNames.getProperty(debugName);
if (nm != null )
Via this function, it's possible to override the log file name.
This Ticket and
OPENAM-4614 can be resolved at the same time.