Hi!

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) {
        super(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!

Cheers...

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to