Package org.apache.commons.logging.impl

Examples of org.apache.commons.logging.impl.NoOpLog


            log = (Log) (logImplctor.newInstance(args));
        } catch (Throwable t) {
            log = null;
        }
        if (null == log) {
            log = new NoOpLog(name);
        }
        return log;

    }
View Full Code Here


        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 )
        {
View Full Code Here

        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 )
        {
View Full Code Here

     *
     * @param log the new logger
     */
    public void setLogger(Log log)
    {
        this.log = (log != null) ? log : new NoOpLog();
    }
View Full Code Here

     * @param log the new logger
     * @since 1.4
     */
    public void setLogger(Log log)
    {
        this.log = (log != null) ? log : new NoOpLog();
    }
View Full Code Here

        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;
View Full Code Here

        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;
View Full Code Here

            log = (Log) logImplctor.newInstance(args);
        } catch (Throwable t) {
            log = null;
        }
        if (null == log) {
            log = new NoOpLog(name);
        }
        return log;
    }
View Full Code Here

    @Override
    public Log getInstance(String name) throws LogConfigurationException {
      if (AutoConfigurationReportLoggingInitializer.class.getName().equals(name)) {
        return logThreadLocal.get();
      }
      return new NoOpLog();
    }
View Full Code Here

/* 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;
/*     */   }
View Full Code Here

TOP

Related Classes of org.apache.commons.logging.impl.NoOpLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.