logo       

Re: can't disable Log: msg#00030

java.jetty.general

Subject: Re: can't disable Log

I am using Jetty-5.0.0 and now I am NOT configuring my server class by the xml
file.
Thus in the constructor I added before any other operation the following lines:

System.setProperty("org.apache.commons.logging.LogFactory",
"org.mortbay.log.Factory");

Factory fact = (Factory)LogFactory.getFactory();
log = (LogImpl)fact.getInstance("");
log.reset();
log.info("org.apache.commons.logging.LogFactory: " +
System.getProperty("org.apache.commons.logging.LogFactory"));

but I get the output:

19:16:09.156 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >08>
added org.mortbay.log.OutputStreamLogSink@c832d2
19:16:08.735 INFO [main] org.mortbay.log.LogImpl.reset(LogImpl.java:228) >03>
reset
1095182169857: INFO :org.apache.commons.logging.LogFactory:
org.mortbay.log.Factory @ [main] Noxfy.<init>(Noxfy.java:478)

As the reset() method should stop any logger, I would expect the last line was
not displayed. Where am I wrong?

bye




-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise