Issue 121216 - Logger overwrites always the same file
Logger overwrites always the same file
Status: RESOLVED FIXED
Product: General
Classification: Code
Component: code
3.4.1
All All
: P3 normal (vote)
: 4.0.0
Assigned To: Ariel Constenla-Haile
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-15 04:32 UTC by Ariel Constenla-Haile
Modified: 2012-10-15 10:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation on: ---
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 0 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 brinzing 2012-10-15 10:43:35 UTC
.