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

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

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

Logger.tracev介绍

[英]Issue a log message with a level of TRACE using java.text.MessageFormat-style formatting.
[中]使用java发出具有跟踪级别的日志消息。文本MessageFormat样式格式化。

代码示例

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

  1. /**
  2. * Constructs a HiLoOptimizer
  3. *
  4. * @param returnClass The Java type of the values to be generated
  5. * @param incrementSize The increment size.
  6. */
  7. public HiLoOptimizer(Class returnClass, int incrementSize) {
  8. super( returnClass, incrementSize );
  9. if ( incrementSize < 1 ) {
  10. throw new HibernateException( "increment size cannot be less than 1" );
  11. }
  12. if ( log.isTraceEnabled() ) {
  13. log.tracev( "Creating hilo optimizer with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() );
  14. }
  15. }

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

  1. /**
  2. * Constructs a LegacyHiLoAlgorithmOptimizer
  3. *
  4. * @param returnClass The Java type of the values to be generated
  5. * @param incrementSize The increment size.
  6. */
  7. public LegacyHiLoAlgorithmOptimizer(Class returnClass, int incrementSize) {
  8. super( returnClass, incrementSize );
  9. if ( incrementSize < 1 ) {
  10. throw new HibernateException( "increment size cannot be less than 1" );
  11. }
  12. if ( log.isTraceEnabled() ) {
  13. log.tracev( "Creating hilo optimizer (legacy) with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() );
  14. }
  15. initialMaxLo = incrementSize;
  16. }

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

  1. if ( log.isTraceEnabled() ) {
  2. log.tracev(
  3. "Reassociating transient instance: {0}",
  4. MessageHelper.infoString( persister, id, event.getSession().getFactory() )

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

  1. if ( log.isTraceEnabled() ) {
  2. log.tracev(
  3. "Initializing object from ResultSet: {0}",
  4. MessageHelper.infoString(
  5. : null;
  6. if ( rowId != null && log.isTraceEnabled() ) {
  7. log.tracev(
  8. "extracted ROWID value: {0}",
  9. rowId

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

  1. if ( log.isTraceEnabled() ) {
  2. log.tracev(
  3. "Locking {0} in mode: {1}",
  4. MessageHelper.infoString( persister, entry.getId(), source.getFactory() ),

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

  1. /**
  2. * Constructs a HiLoOptimizer
  3. *
  4. * @param returnClass The Java type of the values to be generated
  5. * @param incrementSize The increment size.
  6. */
  7. public HiLoOptimizer(Class returnClass, int incrementSize) {
  8. super( returnClass, incrementSize );
  9. if ( incrementSize < 1 ) {
  10. throw new HibernateException( "increment size cannot be less than 1" );
  11. }
  12. if ( log.isTraceEnabled() ) {
  13. log.tracev( "Creating hilo optimizer with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() );
  14. }
  15. }

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

  1. /**
  2. * Constructs a LegacyHiLoAlgorithmOptimizer
  3. *
  4. * @param returnClass The Java type of the values to be generated
  5. * @param incrementSize The increment size.
  6. */
  7. public LegacyHiLoAlgorithmOptimizer(Class returnClass, int incrementSize) {
  8. super( returnClass, incrementSize );
  9. if ( incrementSize < 1 ) {
  10. throw new HibernateException( "increment size cannot be less than 1" );
  11. }
  12. if ( log.isTraceEnabled() ) {
  13. log.tracev( "Creating hilo optimizer (legacy) with [incrementSize={0}; returnClass={1}]", incrementSize, returnClass.getName() );
  14. }
  15. initialMaxLo = incrementSize;
  16. }

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts/jbossxts

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts/jbossxts

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts.xts/ws-t11

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts.xts/ws-t11

  1. /**
  2. * Execute the completed transition.
  3. *
  4. */
  5. private void executeCompleted()
  6. {
  7. try
  8. {
  9. coordinator.completed() ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpected exception from coordinator completed", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts/jbossxts

  1. /**
  2. * Handle the soap fault event.
  3. * @param soapFault The soap fault.
  4. * @param map The addressing context.
  5. * @param arjunaContext The arjuna context.
  6. *
  7. */
  8. public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
  9. {
  10. if (WSTLogger.logger.isTraceEnabled())
  11. {
  12. final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  13. final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
  14. final QName subCode = soapFault.getSubcode() ;
  15. WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  16. }
  17. }

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

  1. /**
  2. * Handle the soap fault event.
  3. * @param soapFault The soap fault.
  4. * @param map The addressing context.
  5. * @param arjunaContext The arjuna context.
  6. *
  7. */
  8. public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
  9. {
  10. if (WSTLogger.logger.isTraceEnabled())
  11. {
  12. final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  13. final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
  14. final QName subCode = soapFault.getSubcode() ;
  15. WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  16. }
  17. }

代码示例来源:origin: org.jboss.jbossts.xts/ws-t11

  1. /**
  2. * Handle the soap fault event.
  3. * @param soapFault The soap fault.
  4. * @param map The addressing context.
  5. * @param arjunaContext The arjuna context.
  6. *
  7. */
  8. public void soapFault(final SoapFault soapFault, final MAP map, final ArjunaContext arjunaContext)
  9. {
  10. if (WSTLogger.logger.isTraceEnabled())
  11. {
  12. final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ;
  13. final SoapFaultType soapFaultType = soapFault.getSoapFaultType() ;
  14. final QName subCode = soapFault.getSubcode() ;
  15. WSTLogger.logger.tracev("Unexpected SOAP fault for coordinator {0}: {1} {2}", new Object[] {instanceIdentifier, soapFaultType, subCode}) ;
  16. }
  17. }

代码示例来源:origin: org.jboss.jbossts.xts/ws-t11

  1. /**
  2. * Send the rollback message.
  3. *
  4. */
  5. private void sendRollback()
  6. {
  7. try
  8. {
  9. ParticipantClient.getClient().sendRollback(participant, createContext(), instanceIdentifier) ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpecting exception while sending Rollback", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

  1. /**
  2. * Send the exited message.
  3. *
  4. */
  5. private void sendExited()
  6. {
  7. final MAP map = createContext() ;
  8. try
  9. {
  10. ParticipantCompletionParticipantClient.getClient().sendExited(participant, map, instanceIdentifier) ;
  11. }
  12. catch (final Throwable th)
  13. {
  14. if (WSTLogger.logger.isTraceEnabled())
  15. {
  16. WSTLogger.logger.tracev("Unexpected exception while sending Exited", th) ;
  17. }
  18. }
  19. }

代码示例来源:origin: org.jboss.jbossts.xts/jbossxts

  1. /**
  2. * Send the rollback message.
  3. *
  4. */
  5. private void sendRollback()
  6. {
  7. try
  8. {
  9. ParticipantClient.getClient().sendRollback(participant, createContext(), instanceIdentifier) ;
  10. }
  11. catch (final Throwable th)
  12. {
  13. if (WSTLogger.logger.isTraceEnabled())
  14. {
  15. WSTLogger.logger.tracev("Unexpecting exception while sending Rollback", th) ;
  16. }
  17. }
  18. }

代码示例来源:origin: org.jboss.jbossts/jbossxts

  1. /**
  2. * Send the closed message.
  3. *
  4. */
  5. private void sendClosed()
  6. {
  7. final MAP map = createContext() ;
  8. try
  9. {
  10. CoordinatorCompletionCoordinatorClient.getClient().sendClosed(coordinator, map, instanceIdentifier) ;
  11. }
  12. catch (final Throwable th)
  13. {
  14. if (WSTLogger.logger.isTraceEnabled())
  15. {
  16. WSTLogger.logger.tracev("Unexpected exception while sending Closed", th) ;
  17. }
  18. }
  19. }

相关文章