Check out following link from the mail archives:
http://marc.theaimsgroup.com/?l=log4j-user&m=99858973708304&w=2
--- "G.L. Grobe" <[EMAIL PROTECTED]> wrote:
> I'm trying to put a wrapper around the Logging so that I won't have
> to put log4j imports and declarations all over my code. I've heard of
> other doing this but I'm not exactly sure how so I was hoping I could
> get some pointers on what I've done so far.
>
> Any help much appreciated.
>
> ----
> package com.neuroquest.cais.log;
>
> import org.apache.log4j.Category;
> import org.apache.log4j.PropertyConfigurator;
>
> public class Logger extends Category {
> static Category cat;
>
> public Category getCat() {
> return cat;
> }
>
> public Logger(String name) {
> try {
> PropertyConfigurator.configure("rtlog.properties");
> }
> catch (Exception e) {
> System.err.println("Could not open rtlog.properties");
> }
> if (cat == null)
> cat = Category.getInstance(name);
> }
> }
>
>
=====
Don
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]