本文整理了Java中org.osgl.logging.Logger.isDebugEnabled()
方法的一些代码示例,展示了Logger.isDebugEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()
方法的具体详情如下:
包路径:org.osgl.logging.Logger
类名称:Logger
方法名:isDebugEnabled
暂无
代码示例来源:origin: actframework/actframework
protected boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: org.actframework/act
protected boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: actframework/actframework
private void compileSources() {
long l = 0;
if (logger.isDebugEnabled()) {
logger.debug("Source compiling starts ...");
l = $.ms();
}
Collection<Source> toBeCompiled = sources.values();
compiler.compile(toBeCompiled);
if (logger.isDebugEnabled()) {
logger.debug("Source compiling takes %sms to compile %s sources", $.ms() - l, toBeCompiled.size());
}
}
代码示例来源:origin: org.actframework/act
private void compileSources() {
long l = 0;
if (logger.isDebugEnabled()) {
logger.debug("Source compiling starts ...");
l = $.ms();
}
Collection<Source> toBeCompiled = sources.values();
compiler.compile(toBeCompiled);
if (logger.isDebugEnabled()) {
logger.debug("Source compiling takes %sms to compile %s sources", $.ms() - l, toBeCompiled.size());
}
}
代码示例来源:origin: org.actframework/act-morphia
@Override
protected void releaseResources() {
ClientManager.release(this);
if (null != fieldNameLookup) {
fieldNameLookup.clear();
fieldNameLookup = null;
}
morphia = null;
if (logger.isDebugEnabled()) {
logger.debug("Morphia shutdown: %s", id());
}
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
protected void releaseResources() {
if (null != ebean) {
ebean.shutdown(true, false);
if (_logger.isDebugEnabled()) {
_logger.debug("ebean shutdown: %s", id());
}
ebean = null;
ebeanConfig = null;
}
super.releaseResources();
}
代码示例来源:origin: org.actframework/act-ebean-java7
@Override
protected void releaseResources() {
if (null != ebean) {
ebean.shutdown(true, false);
if (logger.isDebugEnabled()) {
logger.debug("ebean shutdown: %s", id());
}
ebean = null;
}
if (null != ebeanReadOnly) {
ebeanReadOnly.shutdown(true, false);
if (logger.isDebugEnabled()) {
logger.debug("ebean readonly shutdown: %s", id());
}
ebeanReadOnly = null;
}
super.releaseResources();
}
代码示例来源:origin: org.actframework/act-ebean
@Override
protected void releaseResources() {
if (null != ebean) {
ebean.shutdown(true, false);
if (logger.isDebugEnabled()) {
logger.debug("ebean shutdown: %s", id());
}
ebean = null;
}
if (null != ebeanReadOnly) {
ebeanReadOnly.shutdown(true, false);
if (logger.isDebugEnabled()) {
logger.debug("ebean readonly shutdown: %s", id());
}
ebeanReadOnly = null;
}
super.releaseResources();
}
代码示例来源:origin: org.actframework/act-ebean2
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(S.concat("agent already loaded: ", agentName));
代码示例来源:origin: org.actframework/act-ebean
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(S.concat("agent already loaded: ", agentName));
代码示例来源:origin: org.actframework/act-ebean-java7
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(S.concat("agent already loaded: ", agentName));
代码示例来源:origin: org.actframework/act
long ns = timer.ns();
timer.stop();
if (logger.isDebugEnabled()) {
logger.debug("it takes %sms to find %s sources to be scanned and their bytecodes", ns / (1000 * 1000), sources.size());
代码示例来源:origin: actframework/actframework
long ns = timer.ns();
timer.stop();
if (logger.isDebugEnabled()) {
logger.debug("it takes %sms to scan %s sources and their bytecodes", ns / (1000 * 1000), sources.size());
代码示例来源:origin: actframework/actframework
public boolean send() {
try {
MimeMessage message = createMessage();
if (!mailerConfig().mock()) {
if (logger.isDebugEnabled()) {
logger.debug("Sending email\n%sEnd email\n", debug(message));
}
Transport.send(message);
} else {
logger.info("Sending email\n%sEnd email\n", debug(message));
}
return true;
} catch (Exception e) {
logger.error(e, "Error sending email: %s", this);
return false;
}
}
代码示例来源:origin: org.actframework/act
long ns = timer.ns();
timer.stop();
if (logger.isDebugEnabled()) {
logger.debug("it takes %sms to scan %s sources and their bytecodes", ns / (1000 * 1000), sources.size());
代码示例来源:origin: org.actframework/act
public boolean send() {
try {
MimeMessage message = createMessage();
if (!mailerConfig().mock()) {
if (logger.isDebugEnabled()) {
logger.debug("Sending email\n%sEnd email\n", debug(message));
}
Transport.send(message);
} else {
logger.info("Sending email\n%sEnd email\n", debug(message));
}
return true;
} catch (Exception e) {
logger.error(e, "Error sending email: %s", this);
return false;
}
}
代码示例来源:origin: actframework/actframework
if (logger.isDebugEnabled()) {
ms = $.ms();
logger.debug("Bytecode scanning starts on %s classes ...", classes.size());
if (logger.isDebugEnabled()) {
logger.debug("Bytecode scanning takes: " + ($.ms() - ms) + "ms");
代码示例来源:origin: org.actframework/act
@Command(name = "act.log.level.show", help = "Show log level")
public String showLogLevel(@Required("specify LOGGER name") String name) {
Logger logger = LogManager.get(name);
if (logger.isTraceEnabled()) {
return "trace";
} else if (logger.isDebugEnabled()) {
return "debug";
} else if (logger.isInfoEnabled()) {
return "info";
} else if (logger.isWarnEnabled()) {
return "warn";
} else if (logger.isErrorEnabled()) {
return "error";
}
return "fatal";
}
代码示例来源:origin: actframework/actframework
@Command(name = "act.log.level.show", help = "Show log level")
public String showLogLevel(@Required("specify LOGGER name") String name) {
Logger logger = LogManager.get(name);
if (logger.isTraceEnabled()) {
return "trace";
} else if (logger.isDebugEnabled()) {
return "debug";
} else if (logger.isInfoEnabled()) {
return "info";
} else if (logger.isWarnEnabled()) {
return "warn";
} else if (logger.isErrorEnabled()) {
return "error";
}
return "fatal";
}
内容来源于网络,如有侵权,请联系作者删除!