You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/09/22 20:06:20 UTC

DO NOT REPLY [Bug 40585] New: - org.apache.juli.FileHandler does not allow programmatic creation using parametrized constructor

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40585

           Summary: org.apache.juli.FileHandler does not allow programmatic
                    creation using parametrized constructor
           Product: Tomcat 5
           Version: 5.5.16
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: minor
          Priority: P4
         Component: Catalina:Modules
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: myhlam@mail.ru


If org.apache.juli.FileHandler is created programmatically with parametrized
constructor 

public FileHandler(String directory, String prefix, String suffix)

, FileHandler ignores custom constructor parameters, creates log handler with 
default configuration and writes log file to 
"${catalina_home}/bin/logs" with the name "juli.YYYY-MM-DD.log"
(YYYY, MM and DD are substituted with actual year, month and date)

It looks like the problem is in the fact parametrized constructor calls 
default constructor. Default constructor in turn performs handler configuration
from LogManager properties and creates a log file based on this default 
configuration. 

This makes custom constructor parameters effectively ignored.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 40585] - org.apache.juli.FileHandler does not allow programmatic creation using parametrized constructor

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40585


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From markt@apache.org  2006-11-25 10:27 -------
This has been fixed in SVN and will be included in 5.5.21 onwards.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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