Issue 121216 - Logger overwrites always the same file
Summary: Logger overwrites always the same file
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 04:32 UTC by Ariel Constenla-Haile
Modified: 2017-05-20 10:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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
.