Re: NSLog.Log4JLogger
Re: NSLog.Log4JLogger
- Subject: Re: NSLog.Log4JLogger
- From: Christian Pekeler <email@hidden>
- Date: Tue, 9 Mar 2004 13:37:45 -0700
may anybody tell me how to use the NSLog.Log4JLogger please?
a link or a small example is enough.
Something like
private static final org.apache.log4j.Logger logger =
org.apache.log4j.Logger.getLogger(Your.class);
...
NSLog.setDebug(new NSLog.Log4JLogger(logger,
NSLog.debug.allowedDebugLevel()));
NSLog.setOut(new NSLog.Log4JLogger(logger,
NSLog.out.allowedDebugLevel()));
NSLog.setErr(new NSLog.Log4JLogger(logger,
NSLog.err.allowedDebugLevel()));
Should redirect NSLog logging to Log4J. The documentation for
NSLog.Log4JLogger seems wrong.
Christian
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.