Package org.jboss.logging

Examples of org.jboss.logging.Logger.warn()


            logger.info(msg, th);
         }
         else if (level == Level.WARNING)
         {
            String msg = getMessage(record);
            logger.warn(msg, th);
         }
         else if (level == Level.SEVERE)
         {
            String msg = getMessage(record);
            logger.error(msg, th);
View Full Code Here


        log.fatal("Dummy - JBoss logging bean - fatal");
    }

    public void myLog(String string) {
        Logger log = Logger.getLogger(this.getClass().getName().toString());
        log.warn(string);
    }
}
View Full Code Here

      {
         poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
      }
      catch (ResourceException re)
      {
         log.warn("Unable to set log writer '" + logWriter + "' on " + "managed connection factory", re);
         log.warn("Linked exception:", re.getLinkedException());
      }
     
      if (poolingStrategy instanceof PreFillPoolSupport)
      {
View Full Code Here

         poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
      }
      catch (ResourceException re)
      {
         log.warn("Unable to set log writer '" + logWriter + "' on " + "managed connection factory", re);
         log.warn("Linked exception:", re.getLinkedException());
      }
     
      if (poolingStrategy instanceof PreFillPoolSupport)
      {
         PreFillPoolSupport prefill = (PreFillPoolSupport) poolingStrategy;
View Full Code Here

    @Test
    public void testWarn() {
        Logger mock =
            createStrictMock(Logger.class);

        mock.warn("a");
        replay(mock);

        InternalLogger logger = new JBossLogger(mock);
        logger.warn("a");
        verify(mock);
View Full Code Here

    @Test
    public void testWarnWithException() {
        Logger mock =
            createStrictMock(Logger.class);

        mock.warn("a", e);
        replay(mock);

        InternalLogger logger = new JBossLogger(mock);
        logger.warn("a", e);
        verify(mock);
View Full Code Here

        
         if (parentType.isAssignableFrom(childType)) {
            // HACK see getLogger() for details
            Logger log = getLogger();

            log.warn("Duplicate throwable nesting of same base type: " +
                     parentType + " is assignable from: " + childType);
         }
      }
     
      /**
 
View Full Code Here

        
         if (parentType.isAssignableFrom(childType)) {
            // HACK see getLogger() for details
            Logger log = getLogger();

            log.warn("Duplicate throwable nesting of same base type: " +
                     parentType + " is assignable from: " + childType);
         }
      }
     
      /**
 
View Full Code Here

/*     */     {
/* 279 */       this.poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
/*     */     }
/*     */     catch (ResourceException re)
/*     */     {
/* 283 */       log.warn("Unable to set log writer '" + logWriter + "' on " + "managed connection factory", re);
/* 284 */       log.warn("Linked exception:", re.getLinkedException());
/*     */     }
/* 286 */     if ((this.poolingStrategy instanceof PreFillPoolSupport))
/*     */     {
/* 289 */       PreFillPoolSupport prefill = (PreFillPoolSupport)this.poolingStrategy;
View Full Code Here

/* 279 */       this.poolingStrategy.getManagedConnectionFactory().setLogWriter(logWriter);
/*     */     }
/*     */     catch (ResourceException re)
/*     */     {
/* 283 */       log.warn("Unable to set log writer '" + logWriter + "' on " + "managed connection factory", re);
/* 284 */       log.warn("Linked exception:", re.getLinkedException());
/*     */     }
/* 286 */     if ((this.poolingStrategy instanceof PreFillPoolSupport))
/*     */     {
/* 289 */       PreFillPoolSupport prefill = (PreFillPoolSupport)this.poolingStrategy;
/*     */
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.