• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSLog.Log4JLogger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSLog.Log4JLogger
      • From: Christian Pekeler <email@hidden>
References: 
 >Re: WOCookie - replacing/removing? (From: Benjamin Miller <email@hidden>)
 >email in Unicode (From: "WebObjects EMail" <email@hidden>)
 >Re: email in Unicode (From: Dev WO <email@hidden>)
 >NSLog.Log4JLogger (From: "WebObjects EMail" <email@hidden>)
 >Re: NSLog.Log4JLogger (From: Christian Pekeler <email@hidden>)

  • Prev by Date: Re: Whats the recommended way for cross-object information inquiry?
  • Next by Date: Re: Limiting max number of sessions
  • Previous by thread: Re: NSLog.Log4JLogger
  • Next by thread: Re: NSLog.Log4JLogger
  • Index(es):
    • Date
    • Thread