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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11078

Subclassing

           Summary: Subclassing
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Configurator
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I think I discovered a bug, when I want to use a subclass of the class Logger.

I use the DomConfigurator to configure Log4j and want to use a subclass of 
Logger.

It works fine when I specify the class in each category like

<code>
        <category name="net.NetTools" class="wwerk.wnetz.system.Logger" 
additivity="false">
                <priority value="DEBUG"/>
        
                <appender-ref ref = "GUI"/>
        </category>

    <categoryFactory class="wwerk.wnetz.system.TheLoggerFactory"/>
</code> 

If I dont specify the class in each category I get a ClassCastException when I 
want to get a named Logger-Instance.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to