Issue 121216

Summary: Logger overwrites always the same file
Product: General Reporter: Ariel Constenla-Haile <arielch>
Component: codeAssignee: Ariel Constenla-Haile <arielch>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: oliver.brinzing
Version: 3.4.1   
Target Milestone: 4.0.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Ariel Constenla-Haile 2012-10-15 04:32:10 UTC
The current configuration for loggers (org.openoffice.Office.Logging) only allows in the FileURL substitution of variables understood by the PathSubstitution service, and the logger name. This results always in the same file name, thus being the file always overwritten.

There might be components wanting to create a unique logger file name, not overwritten in the next office run.
Comment 1 SVN Robot 2012-10-15 04:37:05 UTC
"arielch" committed SVN revision 1398194 into trunk:
#i121216# - Allow unique logger file name
Comment 2 Ariel Constenla-Haile 2012-10-15 04:39:52 UTC
Fixed by adding the following additional variables:

$(date) - the current date
$(time) - the current time
$(datetime) - the current date time
$(pid) - the process identifier

These can be used in the FileURL to generate a file name that is likely never going to be overwritten:

"$(userurl)/$(loggername)-$(date).$(time)-$(pid).log"
Comment 3 Oliver Brinzing 2012-10-15 10:43:35 UTC
.