Package org.jboss.logging

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


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

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

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


                  log.trace("Assign user to role " + name);
               group.addMember(p);
            }
            catch(Exception e)
            {
               log.debug("Failed to create principal: "+name, e);
            }
         } while( rs.next() );
      }
      catch(NamingException ex)
      {
View Full Code Here

                  log.trace("Assign user to role " + name);
               group.addMember(p);
            }
            catch(Exception e)
            {
               log.debug("Failed to create principal: "+name, e);
            }
         } while( rs.next() );
      }
      catch(NamingException ex)
      {
View Full Code Here

                        false
                );
                knownQueries.put(method, factory.createFindByPrimaryKeyQuery(q));

                if (log.isDebugEnabled())
                    log.debug("Added findByPrimaryKey query command for home interface");
            } catch (NoSuchMethodException e) {
                throw new RuntimeException("Home interface does not have a findByPrimaryKey method");
            }
        }
View Full Code Here

                    entity.getMetaData().getReadAhead() : findByPKMD.getReadAhead());
            JDBCQueryMetaData q = new JDBCAutomaticQueryMetaData(method, readAhead, entity.getMetaData().getQlCompiler(), false);
            knownQueries.put(method, factory.createFindByPrimaryKeyQuery(q));

            if (log.isDebugEnabled())
                log.debug("Added findByPrimaryKey query command for local home interface");
        }

        //
        // Custom finders - Overrides defined and automatic finders.
        //
View Full Code Here

                        // got it add it to known finders
                        knownQueries.put(interfaceMethod, new JDBCCustomFinderQuery(manager, m));

                        if (log.isDebugEnabled())
                            log.debug("Added custom finder " + methodName + " on home interface");
                    } catch (NoSuchMethodException e) {
                        // this is ok method may not be defined on this interface
                    }
                }
View Full Code Here

                        // got it add it to known finders
                        knownQueries.put(interfaceMethod, new JDBCCustomFinderQuery(manager, m));

                        if (log.isDebugEnabled())
                            log.debug("Added custom finder " + methodName + " on local home interface");
                    } catch (NoSuchMethodException e) {
                        // this is ok method may not be defined on this interface
                    }
                }
            }
View Full Code Here

         {
            Thread.currentThread().sleep(3000);
            NetworkInstance[] instances = registry.getServers();
            for(int x = 0; x < instances.length; x++)
            {
               log.debug(instances[x]);
            }
         }


      }
View Full Code Here

            builder.append("Resolved order: [ ");
            for (String jar : order) {
                builder.append(jar).append(' ');
            }
            builder.append(']');
            log.debug(builder.toString());
        }

        warMetaData.setOrder(order);
        warMetaData.setOverlays(overlays);
        warMetaData.setScis(scis);
View Full Code Here

                return isrc;
            }
        }
        Logger log = Logger.getLogger(MyEntityResolver.class);
        if (log.isDebugEnabled())
            log.debug("Resolve entity failed" + publicId + " " + systemId);
        log.error(Localizer.getMessage("jsp.error.parse.xml.invalidPublicId",
                publicId));
        return null;
    }
}
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.