org.jboss.logging.Logger.debug()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(326)

本文整理了Java中org.jboss.logging.Logger.debug()方法的一些代码示例,展示了Logger.debug()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()方法的具体详情如下:
包路径:org.jboss.logging.Logger
类名称:Logger
方法名:debug

Logger.debug介绍

[英]Issue a log message with a level of DEBUG.
[中]发出调试级别的日志消息。

代码示例

代码示例来源:origin: hibernate/hibernate-orm

  1. public void setService(R service) {
  2. if ( this.service != null ) {
  3. if ( log.isDebugEnabled() ) {
  4. log.debug( "Overriding existing service binding [" + serviceRole.getName() + "]" );
  5. }
  6. }
  7. this.service = service;
  8. }
  9. }

代码示例来源:origin: hibernate/hibernate-orm

  1. protected void resetConnection(boolean initiallyAutoCommit) {
  2. try {
  3. if ( initiallyAutoCommit ) {
  4. log.trace( "re-enabling auto-commit on JDBC Connection after completion of JDBC-based transaction" );
  5. getConnectionForTransactionManagement().setAutoCommit( true );
  6. status = TransactionStatus.NOT_ACTIVE;
  7. }
  8. }
  9. catch ( Exception e ) {
  10. log.debug(
  11. "Could not re-enable auto-commit on JDBC Connection after completion of JDBC-based transaction : " + e
  12. );
  13. }
  14. }

代码示例来源:origin: hibernate/hibernate-orm

  1. if ( log.isTraceEnabled() ) {
  2. log.trace(
  3. String.format(
  4. "Registering named strategy selector [%s] : [%s] -> [%s]",
  5. if ( log.isDebugEnabled() ) {
  6. log.debug(
  7. String.format(
  8. "Registering named strategy selector [%s] : [%s] -> [%s] (replacing [%s])",

代码示例来源:origin: org.jboss.narayana.jta/jta

  1. private List<Uid> convertToList(InputObjectState aa_uids) {
  2. List<Uid> uids = new ArrayList<Uid>();
  3. boolean moreUids = true;
  4. while (moreUids) {
  5. Uid theUid = null;
  6. try {
  7. theUid = UidHelper.unpackFrom(aa_uids);
  8. if (theUid.equals(Uid.nullUid())) {
  9. moreUids = false;
  10. } else {
  11. Uid newUid = new Uid(theUid);
  12. if (tsLogger.logger.isDebugEnabled()) {
  13. tsLogger.logger.debug("found transaction " + newUid);
  14. }
  15. uids.add(newUid);
  16. }
  17. } catch (IOException ex) {
  18. moreUids = false;
  19. }
  20. }
  21. return uids;
  22. }

代码示例来源:origin: hibernate/hibernate-orm

  1. /**
  2. * Adds an explicit (as opposed to discovered) strategy registration.
  3. *
  4. * @param strategyRegistration The strategy implementation registration.
  5. * @param <T> The type of the strategy. Used to make sure that the strategy and implementation are type
  6. * compatible.
  7. */
  8. public <T> void addExplicitStrategyRegistration(StrategyRegistration<T> strategyRegistration) {
  9. if ( !strategyRegistration.getStrategyRole().isInterface() ) {
  10. // not good form...
  11. log.debug( "Registering non-interface strategy : " + strategyRegistration.getStrategyRole().getName() );
  12. }
  13. if ( ! strategyRegistration.getStrategyRole().isAssignableFrom( strategyRegistration.getStrategyImplementation() ) ) {
  14. throw new StrategySelectionException(
  15. "Implementation class [" + strategyRegistration.getStrategyImplementation().getName()
  16. + "] does not implement strategy interface ["
  17. + strategyRegistration.getStrategyRole().getName() + "]"
  18. );
  19. }
  20. explicitStrategyRegistrations.add( strategyRegistration );
  21. }

代码示例来源:origin: org.switchyard/switchyard-runtime

  1. @Override
  2. public synchronized Service registerService(Service service) {
  3. if (!_services.containsKey(service.getName())) {
  4. _services.put(service.getName(), new LinkedList<Service>());
  5. }
  6. _services.get(service.getName()).add(service);
  7. if (_logger.isDebugEnabled()) {
  8. _logger.debug("Registered Service '" + service.getName() + "'.");
  9. }
  10. return service;
  11. }

代码示例来源:origin: wildfly/wildfly

  1. if (member != null) {
  2. if (member.getUniqueEventID() > uniqueEventID) {
  3. logger.debug("The removeMember was issued before the node " + nodeId + " was started, ignoring call");
  4. member = null;
  5. } else {
  6. if (logger.isTraceEnabled()) {
  7. logger.trace("removeMember " + this +
  8. " removing nodeID=" +
  9. nodeId +

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

  1. /**
  2. * This is called periodically by the RecoveryManager
  3. */
  4. public void periodicWorkFirstPass()
  5. {
  6. // Transaction type
  7. boolean AtomicActions = false ;
  8. // uids per transaction type
  9. InputObjectState aa_uids = new InputObjectState() ;
  10. try
  11. {
  12. if (tsLogger.logger.isDebugEnabled()) {
  13. tsLogger.logger.debug("AtomicActionRecoveryModule first pass");
  14. }
  15. AtomicActions = _recoveryStore.allObjUids( _transactionType, aa_uids );
  16. }
  17. catch ( ObjectStoreException ex ) {
  18. tsLogger.i18NLogger.warn_recovery_AtomicActionRecoveryModule_1(ex);
  19. }
  20. if ( AtomicActions )
  21. {
  22. _transactionUidVector = processTransactions( aa_uids ) ;
  23. }
  24. }

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

  1. public AtomicActionRecoveryModule()
  2. {
  3. if (tsLogger.logger.isDebugEnabled()) {
  4. tsLogger.logger.debug("AtomicActionRecoveryModule created");
  5. }
  6. if (_recoveryStore == null)
  7. {
  8. _recoveryStore = StoreManager.getRecoveryStore();
  9. }
  10. _transactionStatusConnectionMgr = new TransactionStatusConnectionManager() ;
  11. }

代码示例来源:origin: wildfly/wildfly

  1. @Override
  2. public void close() throws ActiveMQException {
  3. if (closed) {
  4. logger.debug("Session was already closed, giving up now, this=" + this);
  5. return;
  6. }
  7. if (logger.isDebugEnabled()) {
  8. logger.debug("Calling close on session " + this);
  9. }
  10. try {
  11. closeChildren();
  12. synchronized (producerCreditManager) {
  13. producerCreditManager.close();
  14. }
  15. inClose = true;
  16. sessionContext.sessionClose();
  17. } catch (Throwable e) {
  18. // Session close should always return without exception
  19. // Note - we only log at trace
  20. logger.trace("Failed to close session", e);
  21. }
  22. doCleanup(false);
  23. }

代码示例来源:origin: hibernate/hibernate-orm

  1. public TransactionImpl(
  2. TransactionCoordinator transactionCoordinator,
  3. ExceptionConverter exceptionConverter,
  4. AbstractSharedSessionContract session) {
  5. this.transactionCoordinator = transactionCoordinator;
  6. this.exceptionConverter = exceptionConverter;
  7. this.jpaCompliance = session.getFactory().getSessionFactoryOptions().getJpaCompliance();
  8. this.session = session;
  9. if ( session.isOpen() && transactionCoordinator.isActive() ) {
  10. this.transactionDriverControl = transactionCoordinator.getTransactionDriverControl();
  11. }
  12. else {
  13. LOG.debug( "TransactionImpl created on closed Session/EntityManager" );
  14. }
  15. if ( LOG.isDebugEnabled() ) {
  16. LOG.debugf(
  17. "On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == %s",
  18. jpaCompliance.isJpaTransactionComplianceEnabled()
  19. );
  20. }
  21. }

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

  1. public CachedRecoveredTransaction ( Uid actionUid, String theType )
  2. {
  3. _theTransactionUid = new Uid (actionUid);
  4. _theTransactionType = theType;
  5. if (jtsLogger.logger.isDebugEnabled()) {
  6. jtsLogger.logger.debug("CachedRecoveredTransaction created ["+_theTransactionUid+", "+_theTransactionType+"]");
  7. }
  8. }

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

  1. private List<Uid> convertToList(InputObjectState aa_uids) {
  2. List<Uid> uids = new ArrayList<Uid>();
  3. boolean moreUids = true;
  4. while (moreUids) {
  5. Uid theUid = null;
  6. try {
  7. theUid = UidHelper.unpackFrom(aa_uids);
  8. if (theUid.equals(Uid.nullUid())) {
  9. moreUids = false;
  10. } else {
  11. Uid newUid = new Uid(theUid);
  12. if (tsLogger.logger.isDebugEnabled()) {
  13. tsLogger.logger.debug("found transaction " + newUid);
  14. }
  15. uids.add(newUid);
  16. }
  17. } catch (IOException ex) {
  18. moreUids = false;
  19. }
  20. }
  21. return uids;
  22. }

代码示例来源:origin: hibernate/hibernate-orm

  1. public void addEvent(AbstractCollectionEvent event, Listener listener) {
  2. CollectionEntry collectionEntry = event.getSession()
  3. .getPersistenceContext()
  4. .getCollectionEntry(event.getCollection());
  5. Serializable snapshot = collectionEntry.getSnapshot();
  6. log.debug("add Event: " + event.getClass() + "; listener = "
  7. + listener.getClass() + "; snapshot = " + snapshot);
  8. listenersCalled.add(listener);
  9. events.add(event);
  10. snapshots.add(snapshot);
  11. }

代码示例来源:origin: org.switchyard/switchyard-transform

  1. private static void addJAXBMarshalTransformer(Class<?> outType, List<Transformer<?, ?>> transformers) throws SwitchYardException {
  2. Class<?> objectFactory = getObjectFactory(outType);
  3. if (objectFactory != null) {
  4. QName toType = getTypeXMLQName(outType, objectFactory);
  5. if (toType != null) {
  6. QName fromType = JavaTypes.toMessageType(outType);
  7. transformers.add(new JAXBMarshalTransformer(fromType, toType, outType.getPackage().getName(), false, false));
  8. } else if (_log.isDebugEnabled()) {
  9. _log.debug(createMissingFactoryMethodMessage(outType, objectFactory));
  10. }
  11. }
  12. }

代码示例来源:origin: wildfly/wildfly

  1. @Override
  2. public void commit(final Xid xid, final boolean onePhase) throws XAException {
  3. if (logger.isTraceEnabled()) {
  4. logger.trace("call commit(xid=" + convert(xid));
  5. logger.debug("Throwing oneFase RMFAIL on xid=" + xid, t);
  6. logger.debug("Throwing twoFase Retry on xid=" + xid, t);

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

  1. /**
  2. * This is called periodically by the RecoveryManager
  3. */
  4. public void periodicWorkFirstPass()
  5. {
  6. // Transaction type
  7. boolean AtomicActions = false ;
  8. // uids per transaction type
  9. InputObjectState aa_uids = new InputObjectState() ;
  10. try
  11. {
  12. if (tsLogger.logger.isDebugEnabled()) {
  13. tsLogger.logger.debug("AtomicActionRecoveryModule first pass");
  14. }
  15. AtomicActions = _recoveryStore.allObjUids( _transactionType, aa_uids );
  16. }
  17. catch ( ObjectStoreException ex ) {
  18. tsLogger.i18NLogger.warn_recovery_AtomicActionRecoveryModule_1(ex);
  19. }
  20. if ( AtomicActions )
  21. {
  22. _transactionUidVector = processTransactions( aa_uids ) ;
  23. }
  24. }

代码示例来源:origin: org.jboss.narayana.arjunacore/arjuna

  1. public AtomicActionRecoveryModule()
  2. {
  3. if (tsLogger.logger.isDebugEnabled()) {
  4. tsLogger.logger.debug("AtomicActionRecoveryModule created");
  5. }
  6. if (_recoveryStore == null)
  7. {
  8. _recoveryStore = StoreManager.getRecoveryStore();
  9. }
  10. _transactionStatusConnectionMgr = new TransactionStatusConnectionManager() ;
  11. }

代码示例来源:origin: wildfly/wildfly

  1. private static void logAddOnShutdown() {
  2. if (logger.isDebugEnabled()) {
  3. logger.debug("Ordered executor has been gently shutdown at", new Exception("debug"));
  4. }
  5. }

代码示例来源:origin: wildfly/wildfly

  1. if (logger.isTraceEnabled()) {
  2. logger.trace(this + "::FlowControl::Sending " + creditsToSend + " -1, for slow consumer");
  3. if (logger.isDebugEnabled()) {
  4. logger.debug("Sending " + messageBytes + " from flow-control");

相关文章