本文整理了Java中com.metamx.common.logger.Logger.isDebugEnabled()
方法的一些代码示例,展示了Logger.isDebugEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()
方法的具体详情如下:
包路径:com.metamx.common.logger.Logger
类名称:Logger
方法名:isDebugEnabled
暂无
代码示例来源:origin: metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: com.metamx/emitter
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: com.metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, jsonMapper.writeValueAsString(event));
代码示例来源:origin: com.metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, jsonMapper.writeValueAsString(event));
代码示例来源:origin: com.metamx/emitter
if (log.isDebugEnabled()) {
log.debug(message, jsonMapper.writeValueAsString(event));
代码示例来源:origin: com.metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: com.metamx/emitter
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: metamx/java-util
if (log.isDebugEnabled()) {
log.debug(message, started.get());
代码示例来源:origin: com.n3twork.druid/druid-server
if (log.isTraceEnabled() || log.isDebugEnabled()) {
return new DefaultTeslaAether(
config.getLocalRepository(),
代码示例来源:origin: com.metamx/java-util
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
if (log.isDebugEnabled()) {
log.debug("[%s] messageReceived: %s", requestDesc, e.getMessage());
if (log.isDebugEnabled()) {
log.debug("[%s] Got response: %s", requestDesc, httpResponse.getStatus());
if (log.isDebugEnabled()) {
log.debug(
"[%s] Got chunk: %sB, last=%s",
代码示例来源:origin: com.metamx/http-client
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
if (log.isDebugEnabled()) {
log.debug("[%s] messageReceived: %s", requestDesc, e.getMessage());
if (log.isDebugEnabled()) {
log.debug("[%s] Got response: %s", requestDesc, httpResponse.getStatus());
if (log.isDebugEnabled()) {
log.debug(
"[%s] Got chunk: %sB, last=%s",
代码示例来源:origin: metamx/java-util
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
if (log.isDebugEnabled()) {
log.debug("[%s] messageReceived: %s", requestDesc, e.getMessage());
if (log.isDebugEnabled()) {
log.debug("[%s] Got response: %s", requestDesc, httpResponse.getStatus());
if (log.isDebugEnabled()) {
log.debug(
"[%s] Got chunk: %sB, last=%s",
代码示例来源:origin: com.n3twork.druid/druid-server
@Override
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
{
// Display info about all available segments
final Set<DataSegment> availableSegments = coordinator.getAvailableDataSegments();
if (log.isDebugEnabled()) {
log.debug("Available DataSegments");
for (DataSegment dataSegment : availableSegments) {
log.debug(" %s", dataSegment);
}
}
return params.buildFromExisting()
.withAvailableSegments(availableSegments)
.build();
}
}
代码示例来源:origin: com.metamx/http-client
@Override
public void channelDisconnected(ChannelHandlerContext context, ChannelStateEvent event) throws Exception
{
if (log.isDebugEnabled()) {
log.debug("[%s] Channel disconnected", requestDesc);
}
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, new ChannelException("Channel disconnected"));
}
channel.close();
channelResourceContainer.returnResource();
if (!retVal.isDone()) {
log.warn("[%s] Channel disconnected before response complete", requestDesc);
retVal.setException(new ChannelException("Channel disconnected"));
}
context.sendUpstream(event);
}
代码示例来源:origin: metamx/java-util
@Override
public void channelDisconnected(ChannelHandlerContext context, ChannelStateEvent event) throws Exception
{
if (log.isDebugEnabled()) {
log.debug("[%s] Channel disconnected", requestDesc);
}
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, new ChannelException("Channel disconnected"));
}
channel.close();
channelResourceContainer.returnResource();
if (!retVal.isDone()) {
log.warn("[%s] Channel disconnected before response complete", requestDesc);
retVal.setException(new ChannelException("Channel disconnected"));
}
context.sendUpstream(event);
}
代码示例来源:origin: com.metamx/java-util
@Override
public void channelDisconnected(ChannelHandlerContext context, ChannelStateEvent event) throws Exception
{
if (log.isDebugEnabled()) {
log.debug("[%s] Channel disconnected", requestDesc);
}
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, new ChannelException("Channel disconnected"));
}
channel.close();
channelResourceContainer.returnResource();
if (!retVal.isDone()) {
log.warn("[%s] Channel disconnected before response complete", requestDesc);
retVal.setException(new ChannelException("Channel disconnected"));
}
context.sendUpstream(event);
}
代码示例来源:origin: com.metamx/java-util
@Override
public void exceptionCaught(ChannelHandlerContext context, ExceptionEvent event) throws Exception
{
if (log.isDebugEnabled()) {
final Throwable cause = event.getCause();
if (cause == null) {
log.debug("[%s] Caught exception", requestDesc);
} else {
log.debug(cause, "[%s] Caught exception", requestDesc);
}
}
retVal.setException(event.getCause());
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, event.getCause());
}
removeHandlers();
try {
channel.close();
}
catch (Exception e) {
// ignore
}
finally {
channelResourceContainer.returnResource();
}
context.sendUpstream(event);
}
代码示例来源:origin: com.metamx/http-client
@Override
public void exceptionCaught(ChannelHandlerContext context, ExceptionEvent event) throws Exception
{
if (log.isDebugEnabled()) {
final Throwable cause = event.getCause();
if (cause == null) {
log.debug("[%s] Caught exception", requestDesc);
} else {
log.debug(cause, "[%s] Caught exception", requestDesc);
}
}
retVal.setException(event.getCause());
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, event.getCause());
}
removeHandlers();
try {
channel.close();
}
catch (Exception e) {
// ignore
}
finally {
channelResourceContainer.returnResource();
}
context.sendUpstream(event);
}
代码示例来源:origin: metamx/java-util
@Override
public void exceptionCaught(ChannelHandlerContext context, ExceptionEvent event) throws Exception
{
if (log.isDebugEnabled()) {
final Throwable cause = event.getCause();
if (cause == null) {
log.debug("[%s] Caught exception", requestDesc);
} else {
log.debug(cause, "[%s] Caught exception", requestDesc);
}
}
retVal.setException(event.getCause());
// response is non-null if we received initial chunk and then exception occurs
if (response != null) {
handler.exceptionCaught(response, event.getCause());
}
removeHandlers();
try {
channel.close();
}
catch (Exception e) {
// ignore
}
finally {
channelResourceContainer.returnResource();
}
context.sendUpstream(event);
}
内容来源于网络,如有侵权,请联系作者删除!