Trivial implementation of Log that throws away all messages. No configurable system properties are supported.
285286287288289290291292293294
log = (Log) (logImplctor.newInstance(args)); } catch (Throwable t) { log = null; } if (null == log) { log = new NoOpLog(name); } return log; }
979899100101102103104105106107
digester.push( root ); Log oldLog = digester.getLogger(); try { digester.setLogger( new NoOpLog() ); digester.parse( Utils.getInputStream( this, "test2.xml" ) ); fail("Expected SAXParseException"); } catch ( SAXParseException e ) {
131132133134135136137138139140141
71727374757677
* * @param log the new logger */ public void setLogger(Log log) { this.log = (log != null) ? log : new NoOpLog(); }
361362363364365366367
* @param log the new logger * @since 1.4 */ public void setLogger(Log log) { this.log = (log != null) ? log : new NoOpLog(); }
119120121122123124125126127128129
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;
154155156157158159160161162163164
202203204205206207208209210
log = (Log) logImplctor.newInstance(args); } catch (Throwable t) { log = null; } if (null == log) { log = new NoOpLog(name); } return log; }
203204205206207208209
@Override public Log getInstance(String name) throws LogConfigurationException { if (AutoConfigurationReportLoggingInitializer.class.getName().equals(name)) { return logThreadLocal.get(); } return new NoOpLog(); }
626364656667686970
/* 240 */ log = (Log)(Log)logImplctor.newInstance(args); /* */ } catch (Throwable t) { /* 242 */ log = null; /* */ } /* 244 */ if (null == log) { /* 245 */ log = new NoOpLog(name); /* */ } /* 247 */ return log; /* */ }