org.apache.openejb.util.Logger.debug()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(258)

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

Logger.debug介绍

[英]If this level is enabled, then it finds a message for the given key and logs it
[中]如果启用了此级别,则会查找给定密钥的消息并记录该消息

代码示例

代码示例来源:origin: org.apache.openejb/openejb-core

  1. private static void logExclusions(final String[] exclusionArray) {
  2. if (logger.isDebugEnabled()) {
  3. logger.debug("Exclusion prefixes: [");
  4. for (final String ex : exclusionArray) {
  5. logger.debug("-" + ex);
  6. }
  7. logger.debug("]");
  8. }
  9. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. public void afterCompletion(final int i) {
  2. entityManager.close();
  3. logger.debug("Closed EntityManager(unit=" + unitName + ", hashCode=" + entityManager.hashCode() + ")");
  4. }
  5. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public boolean logout() throws LoginException {
  3. this.subject.getPrincipals().removeAll(this.principals);
  4. this.principals.clear();
  5. log.debug("logout");
  6. return true;
  7. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public boolean logout() throws LoginException {
  3. this.subject.getPrincipals().removeAll(this.principals);
  4. this.principals.clear();
  5. log.debug("logout");
  6. return true;
  7. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private void optionalBind(final Bindings bindings, final Reference ref, final String name) throws NamingException {
  2. try {
  3. openejbContext.bind(name, ref);
  4. logger.debug("bound ejb at name: " + name + ", ref: " + ref);
  5. bindings.add(name);
  6. } catch (final NamingException okIfBindFails) {
  7. logger.debug("failed to bind ejb at name: " + name + ", ref: " + ref);
  8. }
  9. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. public static WebBeansContext enter(final WebBeansContext newOWBContext) {
  2. final WebBeansContext oldContext = contexts.get();
  3. if (newOWBContext != null) {
  4. contexts.set(newOWBContext);
  5. } else {
  6. contexts.remove();
  7. }
  8. if (logger.isDebugEnabled()) {
  9. logger.debug("Enter:'" + newOWBContext + "'");
  10. }
  11. return oldContext;
  12. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public boolean abort() throws LoginException {
  3. clear();
  4. log.debug("abort");
  5. return true;
  6. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. @Override
  2. public boolean abort() throws LoginException {
  3. clear();
  4. log.debug("abort");
  5. return true;
  6. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. public boolean abort() throws LoginException {
  2. clear();
  3. if (debug) {
  4. log.debug("abort");
  5. }
  6. return true;
  7. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public boolean commit() throws LoginException {
  3. this.principals.add(new UserPrincipal(this.userData.user));
  4. for (final String myGroup : this.userData.groups) {
  5. principals.add(new GroupPrincipal(myGroup));
  6. }
  7. this.subject.getPrincipals().addAll(this.principals);
  8. clear();
  9. log.debug("commit");
  10. return true;
  11. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public boolean commit() throws LoginException {
  3. this.principals.add(new UserPrincipal(this.userData.user));
  4. for (final String myGroup : this.userData.groups) {
  5. principals.add(new GroupPrincipal(myGroup));
  6. }
  7. this.subject.getPrincipals().addAll(this.principals);
  8. clear();
  9. log.debug("commit");
  10. return true;
  11. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. @Override
  2. public boolean commit() throws LoginException {
  3. this.principals.add(new UserPrincipal(this.userData.user));
  4. for (final String myGroup : this.userData.groups) {
  5. principals.add(new GroupPrincipal(myGroup));
  6. }
  7. this.subject.getPrincipals().addAll(this.principals);
  8. clear();
  9. log.debug("commit");
  10. return true;
  11. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public void rollback() throws IllegalStateException, SecurityException, SystemException {
  3. if (transactionLogger.isDebugEnabled()) {
  4. transactionLogger.debug("Rolling back user transaction " + transactionManager().getTransaction());
  5. }
  6. transactionManager().rollback();
  7. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public void clear(final Object key) {
  3. final WebBeansContext ctx = getContext((ClassLoader) key);
  4. if (logger.isDebugEnabled()) {
  5. logger.debug("Clearing:'" + ctx + "'");
  6. }
  7. contextByClassLoader.remove(key);
  8. ctx.clear();
  9. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. @Override
  2. public UserTransaction getUserTransaction() {
  3. UserTransaction ut;
  4. try {
  5. ut = (UserTransaction) containerSystem.getJNDIContext().lookup("comp/UserTransaction");
  6. } catch (final NamingException e) {
  7. logger.debug("User transaction is not bound to context, lets create it");
  8. ut = new CoreUserTransaction(getTransactionManager());
  9. }
  10. return ut;
  11. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public int getStatus() throws SystemException {
  3. final int status = transactionManager().getStatus();
  4. if (transactionLogger.isDebugEnabled()) {
  5. transactionLogger.debug("User transaction " + transactionManager().getTransaction() + " has status " + getStatus(status));
  6. }
  7. return status;
  8. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private void initialize() {
  2. for (final File file : list()) {
  3. if (!file.canRead()) {
  4. continue;
  5. }
  6. final FileInfo now = newInfo(file);
  7. now.setChanging(false);
  8. now.setNewFile(false);
  9. logger.debug("Auto-Deployer initialization found: " + file.getAbsolutePath());
  10. }
  11. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. @Override
  2. public void rollback() throws IllegalStateException, SecurityException, SystemException {
  3. check();
  4. if (transactionLogger.isDebugEnabled()) {
  5. transactionLogger.debug("Rolling back user transaction " + transactionManager().getTransaction());
  6. }
  7. transactionManager().rollback();
  8. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. @Override
  2. public void begin() throws NotSupportedException, SystemException {
  3. check();
  4. transactionManager().begin();
  5. if (transactionLogger.isDebugEnabled()) {
  6. transactionLogger.debug("Started user transaction " + transactionManager().getTransaction());
  7. }
  8. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. @Override
  2. public void setRollbackOnly() throws SystemException {
  3. if (transactionLogger.isDebugEnabled()) {
  4. transactionLogger.debug("Marking user transaction for rollback: " + transactionManager().getTransaction());
  5. }
  6. transactionManager().setRollbackOnly();
  7. }

相关文章