Trivial implementation of Log that throws away all messages. No configurable system properties are supported.
202203204205206207208209210
log = (Log) logImplctor.newInstance(args); } catch (Throwable t) { log = null; } if (null == log) { log = new NoOpLog(name); } return log; }
240241242243244245246247248249
log = (Log) (logImplctor.newInstance(args)); } catch (Throwable t) { log = null; } if (null == log) { log = new NoOpLog(name); } return log; }
285286287288289290291292293294
41424344454647
@Before public void setUp() throws Exception { context = new URL("http://foo.example.com/"); impl = new XhtmlResponseHandler(context); impl.setLogger(new NoOpLog()); }
57585960616263
* Override the abstract method from the parent class so that the * inherited tests can access the right Log object type. */ public Log getLogObject() { return new NoOpLog(this.getClass().getName()); }
118119120121122123124125126127128
digester.push(root); Exception exception = null; Log oldLog = digester.getLogger(); try { digester.setLogger(new NoOpLog()); digester.parse( TestAll.getInputStream(this, "test2.xml")); } catch(Exception e) { exception = e;
153154155156157158159160161162163
349350351352353354355
* @param log the new logger * @since 1.4 */ public void setLogger(Log log) { this.log = (log != null) ? log : new NoOpLog(); }