logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodriguez, Victor" <vrodrig...@Intrado.com>
Subject URGENT: Overriding the forcedLog method
Date Fri, 16 Apr 2004 19:33:38 GMT

I need to derive my own Logger that overrides the forcedLog method so as
to use my own ElmLoggingEvent derived from the LoggingEvent class.
Something like this.

public class ElmLogger extends Logger {
    protected ElmLogger(String s) {

    protected void forcedLog(String fqcn, Priority level, Object
message, Throwable t) {
		Insert custom code here...
        callAppenders(new ElmLoggingEvent(/* customer args here*/));

Now, HOW do I ensure that my ElmLogger class is used instead of the
Logger class?

Thanks in advance for a PROMPT reply!


Victor M. Rodriguez
Software Engineer

Intrado, Inc.
1601 Dry Creek Drive
Longmont, CO  80501

Tel: +1-720-864-5098
Fax: +1-720-494-6600 

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

View raw message