https://issues.apache.org/bugzilla/show_bug.cgi?id=53620

          Priority: P2
            Bug ID: 53620
          Assignee: [email protected]
           Summary: [juli] delay opening a file until something gets
                    logged
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to