tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53620] New: [juli] delay opening a file until something gets logged
Date Mon, 30 Jul 2012 08:55:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53620

          Priority: P2
            Bug ID: 53620
          Assignee: dev@tomcat.apache.org
           Summary: [juli] delay opening a file until something gets
                    logged
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: karol.bucek+apache@gmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: Catalina
           Product: Tomcat 7

Created attachment 29137
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29137&action=edit
patch

had troubles configuring the FileHandler while bootstraping Tomcat, this patch
sums up a few (minor) changes that allows one to setup a FileHandler instance
programatically. the changes are the following :

- delay opening a file until something gets logged (since the code is already
there within publish() to support rolling it kind of made sense to open the
file from publish() instead of the constructor)
- add a constructor where all 'configurable' properties of the handler can be
provided programatically 
- since FileHandler.close() is public API so should be open()

I'm very sorry to have no tests, I've happened to test the desired FileHandler
"behavior" with https://github.com/trinidad/trinidad and is currently contained
within the 1.4.0 release of Trinidad.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message