Re: NSLog.Log4JLogger
Re: NSLog.Log4JLogger
- Subject: Re: NSLog.Log4JLogger
- From: Michael Engelhart <email@hidden>
- Date: Tue, 9 Mar 2004 16:26:01 -0500
Is there any particular value to wrapping Log4J Logger's in NSLog like
that? Just curious
Mike
On Mar 9, 2004, at 3:37 PM, Christian Pekeler wrote:
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.
_______________________________________________
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.