本文整理了Java中org.apache.openejb.util.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称: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
private static void logExclusions(final String[] exclusionArray) {
if (logger.isDebugEnabled()) {
logger.debug("Exclusion prefixes: [");
for (final String ex : exclusionArray) {
logger.debug("-" + ex);
}
logger.debug("]");
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
public void afterCompletion(final int i) {
entityManager.close();
logger.debug("Closed EntityManager(unit=" + unitName + ", hashCode=" + entityManager.hashCode() + ")");
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean logout() throws LoginException {
this.subject.getPrincipals().removeAll(this.principals);
this.principals.clear();
log.debug("logout");
return true;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean logout() throws LoginException {
this.subject.getPrincipals().removeAll(this.principals);
this.principals.clear();
log.debug("logout");
return true;
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void optionalBind(final Bindings bindings, final Reference ref, final String name) throws NamingException {
try {
openejbContext.bind(name, ref);
logger.debug("bound ejb at name: " + name + ", ref: " + ref);
bindings.add(name);
} catch (final NamingException okIfBindFails) {
logger.debug("failed to bind ejb at name: " + name + ", ref: " + ref);
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
public static WebBeansContext enter(final WebBeansContext newOWBContext) {
final WebBeansContext oldContext = contexts.get();
if (newOWBContext != null) {
contexts.set(newOWBContext);
} else {
contexts.remove();
}
if (logger.isDebugEnabled()) {
logger.debug("Enter:'" + newOWBContext + "'");
}
return oldContext;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean abort() throws LoginException {
clear();
log.debug("abort");
return true;
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public boolean abort() throws LoginException {
clear();
log.debug("abort");
return true;
}
代码示例来源:origin: org.apache.tomee/openejb-core
public boolean abort() throws LoginException {
clear();
if (debug) {
log.debug("abort");
}
return true;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean commit() throws LoginException {
this.principals.add(new UserPrincipal(this.userData.user));
for (final String myGroup : this.userData.groups) {
principals.add(new GroupPrincipal(myGroup));
}
this.subject.getPrincipals().addAll(this.principals);
clear();
log.debug("commit");
return true;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean commit() throws LoginException {
this.principals.add(new UserPrincipal(this.userData.user));
for (final String myGroup : this.userData.groups) {
principals.add(new GroupPrincipal(myGroup));
}
this.subject.getPrincipals().addAll(this.principals);
clear();
log.debug("commit");
return true;
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public boolean commit() throws LoginException {
this.principals.add(new UserPrincipal(this.userData.user));
for (final String myGroup : this.userData.groups) {
principals.add(new GroupPrincipal(myGroup));
}
this.subject.getPrincipals().addAll(this.principals);
clear();
log.debug("commit");
return true;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public void rollback() throws IllegalStateException, SecurityException, SystemException {
if (transactionLogger.isDebugEnabled()) {
transactionLogger.debug("Rolling back user transaction " + transactionManager().getTransaction());
}
transactionManager().rollback();
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public void clear(final Object key) {
final WebBeansContext ctx = getContext((ClassLoader) key);
if (logger.isDebugEnabled()) {
logger.debug("Clearing:'" + ctx + "'");
}
contextByClassLoader.remove(key);
ctx.clear();
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public UserTransaction getUserTransaction() {
UserTransaction ut;
try {
ut = (UserTransaction) containerSystem.getJNDIContext().lookup("comp/UserTransaction");
} catch (final NamingException e) {
logger.debug("User transaction is not bound to context, lets create it");
ut = new CoreUserTransaction(getTransactionManager());
}
return ut;
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public int getStatus() throws SystemException {
final int status = transactionManager().getStatus();
if (transactionLogger.isDebugEnabled()) {
transactionLogger.debug("User transaction " + transactionManager().getTransaction() + " has status " + getStatus(status));
}
return status;
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void initialize() {
for (final File file : list()) {
if (!file.canRead()) {
continue;
}
final FileInfo now = newInfo(file);
now.setChanging(false);
now.setNewFile(false);
logger.debug("Auto-Deployer initialization found: " + file.getAbsolutePath());
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public void rollback() throws IllegalStateException, SecurityException, SystemException {
check();
if (transactionLogger.isDebugEnabled()) {
transactionLogger.debug("Rolling back user transaction " + transactionManager().getTransaction());
}
transactionManager().rollback();
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public void begin() throws NotSupportedException, SystemException {
check();
transactionManager().begin();
if (transactionLogger.isDebugEnabled()) {
transactionLogger.debug("Started user transaction " + transactionManager().getTransaction());
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public void setRollbackOnly() throws SystemException {
if (transactionLogger.isDebugEnabled()) {
transactionLogger.debug("Marking user transaction for rollback: " + transactionManager().getTransaction());
}
transactionManager().setRollbackOnly();
}
内容来源于网络,如有侵权,请联系作者删除!