RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2011-01-17 Thread hgaglani
Hi.. I have a question regarding the piece of code given by Rémi Dewitte. What does he mean by default Java logger... logger that generates stderr or stdout messages??? Confusion: I am trying to get rid of the console statements since somehow even without using the slf4j bridge I have the restlet

RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-28 Thread Jerome Louvel
s.com -Message d'origine- De : webp...@tigris.org [mailto:webp...@tigris.org] Envoyé : mercredi 21 octobre 2009 00:48 À : discuss@restlet.tigris.org Objet : RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties Absolutely brilliant! See

RE: Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-21 Thread webpost
Absolutely brilliant! Seems to work perfectly. Thank you so very much. I'll throw this up on the wiki so the next person doesn't have to ask the same question again. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24

Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-19 Thread Rémi Dewitte
Hi, In addition to what Timothy explains. I usually remove the default java logger as well : java.util.logging.Logger rootLogger = LogManager.getLogManager().getLogger(""); Handler[] handlers = rootLogger.getHandlers(); rootLogger.removeHandler(han

Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-19 Thread Timothy Aanerud
Try again... It only takes one additional import, one line of code and three additional jar files to get Restlet outputs merged into log4j. After you initialize Log4j, add this line of code: SLF4JBridgeHandler.install() These are the three additional jars: - jul-to-slf4j-1.5.8.jar -- Conver

Re: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-19 Thread Timothy Aanerud
It only takes one additional import and one line of code plus 3 jar files to get Restlet console messages logged. After you have setup log4j add the line On Mon, Oct 19, 2009 at 12:01 AM, Ty wrote: > Hi, > I had a look at the user guide for v1 and v2 and am still a bit confused > about getti

RE: Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-10-18 Thread Ty
Hi, I had a look at the user guide for v1 and v2 and am still a bit confused about getting the Restlet logs to be processed by my application i.e. end up in my log files. My application uses log4j. I followed the lin kto the slf4j website and couldn't find anything on a JUL to log4j brudge. I

Re: Redirect Restlet console statements to an external log file using log4j.properties

2009-05-18 Thread Thierry Boileau
Hello Santosh, could you have a look at this page in the "user guide"? http://wiki.restlet.org/docs_1.1/101-restlet.html Best regards, Thierry Boileau > How can I restrict following Restlet entry in console using log4j.properties? > I don’t want to modify my java code. > > > > May 18, 2009