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

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

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

Logger.trace介绍

[英]Issue a log message with a level of TRACE.
[中]发出具有跟踪级别的日志消息。

代码示例

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

  1. public JChannelWrapper addRef() {
  2. this.refCount++;
  3. if (logger.isTraceEnabled())
  4. logger.trace(this + "::RefCount++ = " + refCount + " on channel " + channelName);
  5. return this;
  6. }

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

  1. private static void dump(Document document) {
  2. if ( !log.isTraceEnabled() ) {
  3. return;
  4. }
  5. final ByteArrayOutputStream baos = new ByteArrayOutputStream();
  6. final Writer w = new PrintWriter( baos );
  7. try {
  8. final XMLWriter xw = new XMLWriter( w, new OutputFormat( " ", true ) );
  9. xw.write( document );
  10. w.flush();
  11. }
  12. catch (IOException e1) {
  13. throw new RuntimeException( "Error dumping enhanced class", e1 );
  14. }
  15. log.tracef( "Envers-generate entity mapping -----------------------------\n%s", baos.toString() );
  16. log.trace( "------------------------------------------------------------" );
  17. }
  18. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

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

  1. /**
  2. * Return a transaction propagation context for the transaction
  3. * currently associated with the invoking thread, or <code>null</code>
  4. * if the invoking thread is not associated with a transaction.
  5. */
  6. public Object getTransactionPropagationContext()
  7. {
  8. if (jbossatxLogger.logger.isTraceEnabled()) {
  9. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called");
  10. }
  11. String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm());
  12. if (jbossatxLogger.logger.isTraceEnabled()) {
  13. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid);
  14. }
  15. return txid;
  16. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

代码示例来源:origin: org.jboss.jbossts/jbossjta-integration

  1. /**
  2. * Return a transaction propagation context for the transaction
  3. * currently associated with the invoking thread, or <code>null</code>
  4. * if the invoking thread is not associated with a transaction.
  5. */
  6. public Object getTransactionPropagationContext()
  7. {
  8. if (jbossatxLogger.logger.isTraceEnabled()) {
  9. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called");
  10. }
  11. String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm());
  12. if (jbossatxLogger.logger.isTraceEnabled()) {
  13. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid);
  14. }
  15. return txid;
  16. }

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

  1. public void addReceiver(JGroupsReceiver jGroupsReceiver) {
  2. synchronized (receivers) {
  3. if (logger.isTraceEnabled())
  4. logger.trace(this + "::Add Receiver: " + jGroupsReceiver + " on " + channelName);
  5. receivers.add(jGroupsReceiver);
  6. }
  7. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

代码示例来源:origin: org.jboss.jbossts/jbossjts-integration

  1. /**
  2. * Return a transaction propagation context for the transaction
  3. * currently associated with the invoking thread, or <code>null</code>
  4. * if the invoking thread is not associated with a transaction.
  5. */
  6. public Object getTransactionPropagationContext()
  7. {
  8. if (jbossatxLogger.logger.isTraceEnabled()) {
  9. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called");
  10. }
  11. String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm());
  12. if (jbossatxLogger.logger.isTraceEnabled()) {
  13. jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid);
  14. }
  15. return txid;
  16. }

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

  1. private void queueExecutor() {
  2. if (logger.isTraceEnabled()) {
  3. logger.trace(this + "::Adding Runner on Executor for delivery");
  4. }
  5. sessionExecutor.execute(runner);
  6. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

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

  1. public int nestedCommit ()
  2. {
  3. if (txojLogger.logger.isTraceEnabled())
  4. {
  5. txojLogger.logger.trace("LockRecord::nestedCommit() for "+order());
  6. }
  7. /* default constructor problem. */
  8. if (managerAddress == null)
  9. return TwoPhaseOutcome.FINISH_ERROR;
  10. if (actionHandle != null)
  11. {
  12. Uid toRelease = actionHandle.get_uid();
  13. actionHandle = actionHandle.parent();
  14. return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
  15. }
  16. else
  17. {
  18. txojLogger.i18NLogger.warn_LockRecord_4();
  19. }
  20. return TwoPhaseOutcome.FINISH_ERROR;
  21. }

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

  1. private ChannelBroadcastEndpointFactory(JChannelManager manager, JChannel channel, String channelName) {
  2. if (logger.isTraceEnabled()) {
  3. logger.trace("new ChannelBroadcastEndpointFactory(" + manager + ", " + channel + ", " + channelName, new Exception("trace"));
  4. }
  5. this.manager = manager;
  6. this.channel = channel;
  7. this.channelName = channelName;
  8. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

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

  1. public int nestedCommit ()
  2. {
  3. if (txojLogger.logger.isTraceEnabled())
  4. {
  5. txojLogger.logger.trace("LockRecord::nestedCommit() for "+order());
  6. }
  7. /* default constructor problem. */
  8. if (managerAddress == null)
  9. return TwoPhaseOutcome.FINISH_ERROR;
  10. if (actionHandle != null)
  11. {
  12. Uid toRelease = actionHandle.get_uid();
  13. actionHandle = actionHandle.parent();
  14. return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
  15. }
  16. else
  17. {
  18. txojLogger.i18NLogger.warn_LockRecord_4();
  19. }
  20. return TwoPhaseOutcome.FINISH_ERROR;
  21. }

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

  1. public void removeClusterTopologyListener(final ClusterTopologyListener listener) {
  2. if (logger.isTraceEnabled()) {
  3. logger.trace(this + "::Removing topology listener " + listener, new Exception("Trace"));
  4. }
  5. synchronized (topologyListeners) {
  6. topologyListeners.remove(listener);
  7. }
  8. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

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

  1. public int nestedCommit ()
  2. {
  3. if (txojLogger.logger.isTraceEnabled())
  4. {
  5. txojLogger.logger.trace("LockRecord::nestedCommit() for "+order());
  6. }
  7. /* default constructor problem. */
  8. if (managerAddress == null)
  9. return TwoPhaseOutcome.FINISH_ERROR;
  10. if (actionHandle != null)
  11. {
  12. Uid toRelease = actionHandle.get_uid();
  13. actionHandle = actionHandle.parent();
  14. return (managerAddress.propagate(toRelease, actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR);
  15. }
  16. else
  17. {
  18. txojLogger.i18NLogger.warn_LockRecord_4();
  19. }
  20. return TwoPhaseOutcome.FINISH_ERROR;
  21. }

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

  1. public void removeReceiver(JGroupsReceiver receiver) {
  2. if (logger.isTraceEnabled())
  3. logger.trace(this + "::removeReceiver: " + receiver + " on " + channelName, new Exception("Trace"));
  4. synchronized (receivers) {
  5. receivers.remove(receiver);
  6. }
  7. }

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

  1. /**
  2. * Remove the specified thread from the transaction.
  3. *
  4. * @return <code>true</code> if successful, <code>false</code>
  5. * otherwise.
  6. */
  7. public final boolean removeChildThread (String threadId)
  8. {
  9. if (tsLogger.logger.isTraceEnabled()) {
  10. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId);
  11. }
  12. if (threadId == null)
  13. return false;
  14. boolean result = false;
  15. criticalStart();
  16. synchronized (this)
  17. {
  18. if (_childThreads != null)
  19. {
  20. _childThreads.remove(threadId);
  21. result = true;
  22. }
  23. }
  24. criticalEnd();
  25. if (tsLogger.logger.isTraceEnabled())
  26. {
  27. tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result);
  28. }
  29. return result;
  30. }

相关文章