• 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: 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.


  • Follow-Ups:
    • Re: NSLog.Log4JLogger
      • From: Michael Engelhart <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>)

  • Prev by Date: WO 5.2 AND MAC OS 10.3
  • Next by Date: Whats the recommended way for cross-object information inquiry?
  • Previous by thread: NSLog.Log4JLogger
  • Next by thread: Re: NSLog.Log4JLogger
  • Index(es):
    • Date
    • Thread