本文整理了Java中org.apache.openejb.util.Logger.isInfoEnabled()
方法的一些代码示例,展示了Logger.isInfoEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isInfoEnabled()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称:Logger
方法名:isInfoEnabled
暂无
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean isInfoEnabled() {
return logger.isInfoEnabled();
}
代码示例来源:origin: org.apache.openejb/openejb-core
public String info(final String message) {
if (isInfoEnabled()) {
final String msg = getMessage(message, baseName);
logStream.info(msg);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.openejb/openejb-core
public String info(final String message, final Throwable t) {
if (isInfoEnabled()) {
final String msg = getMessage(message, baseName);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException,
SecurityException, IllegalStateException, SystemException {
if (transactionLogger.isInfoEnabled()) {
transactionLogger.info("Committing user transaction " + transactionManager().getTransaction());
}
transactionManager().commit();
}
代码示例来源:origin: org.apache.tomee/openejb-core
public String info(final String message, final Throwable t) {
if (isInfoEnabled()) {
final String msg = getMessage(message, baseName);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public void rollback() throws IllegalStateException, SecurityException, SystemException {
if (transactionLogger.isInfoEnabled()) {
transactionLogger.info("Rolling back user transaction " + transactionManager().getTransaction());
}
transactionManager().rollback();
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public void begin() throws NotSupportedException, SystemException {
transactionManager().begin();
if (transactionLogger.isInfoEnabled()) {
transactionLogger.info("Started user transaction " + transactionManager().getTransaction());
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
public String info(final String message) {
if (isInfoEnabled()) {
final String msg = getMessage(message, baseName);
logStream.info(msg);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public String info(String message, Throwable t) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public int getStatus() throws SystemException {
int status = transactionManager().getStatus();
if (transactionLogger.isInfoEnabled()) {
transactionLogger.info("User transaction " + transactionManager().getTransaction() + " has status " + getStatus(status));
}
return status;
}
代码示例来源:origin: org.apache.tomee/openejb-server
@Managed
public void allowCoreThreadTimeOut(final boolean value) {
getThreadPool().allowCoreThreadTimeOut(value);
if (log.isInfoEnabled()) {
log.info(String.format("Set ServicePool '" + ServicePool.this.getName() + "' allow core thread timeout to (%1$s)", value));
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public void setRollbackOnly() throws javax.transaction.SystemException {
if (transactionLogger.isInfoEnabled()) {
transactionLogger.info("Marking user transaction for rollback: " + transactionManager().getTransaction());
}
transactionManager().setRollbackOnly();
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public String info(String message, Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public String info(String message, Throwable t, Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.tomee/openejb-core
public String info(final String message, final Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.tomee/openejb-core
public String info(final String message, final Throwable t, final Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.openejb/openejb-core
public String info(final String message, final Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.openejb/openejb-core
public String info(final String message, final Throwable t, final Object... args) {
if (isInfoEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.info(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.openejb/openejb-ejbd
private EJBResponse setResponseError(final EJBResponse res, final byte version, final Throwable error, final String message) {
//This is fatal for the client, but not the server.
if (logger.isInfoEnabled()) {
logger.info(message + " - Enable DEBUG for stacktrace: " + error);
} else if (logger.isDebugEnabled()) {
logger.debug(message, error);
}
final RemoteException re = new RemoteException(message, error);
res.setResponse(version, ResponseCodes.EJB_ERROR, new ThrowableArtifact(re));
return res;
}
}
代码示例来源:origin: org.apache.tomee/openejb-server
@Managed
public void setMaximumPoolSize(final int maximumPoolSize) {
getThreadPool().setMaximumPoolSize(maximumPoolSize);
if (log.isInfoEnabled()) {
log.info(String.format("Set ServicePool '" + ServicePool.this.getName() + "' maximum threads to (%1$s)", maximumPoolSize));
}
}
内容来源于网络,如有侵权,请联系作者删除!