Java Code Examples for io.netty.handler.logging.LogLevel#TRACE

The following examples show how to use io.netty.handler.logging.LogLevel#TRACE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpClientFactory.java    From azure-cosmosdb-java with MIT License 5 votes vote down vote up
private static LoggingHandler getLoggingHandler() {
    if (LoggerFactory.getLogger(NETWORK_LOG_CATEGORY).isTraceEnabled()) {
        return new LoggingHandler(NETWORK_LOG_CATEGORY, LogLevel.TRACE);
    }

    return null;
}
 
Example 2
Source File: RntbdServiceEndpoint.java    From azure-cosmosdb-java with MIT License 5 votes vote down vote up
public Provider(final RntbdTransportClient transportClient, final Options options, final SslContext sslContext) {

            checkNotNull(transportClient, "expected non-null provider");
            checkNotNull(options, "expected non-null options");
            checkNotNull(sslContext, "expected non-null sslContext");

            final DefaultThreadFactory threadFactory = new DefaultThreadFactory("cosmos-rntbd-nio", true);
            final int threadCount = Runtime.getRuntime().availableProcessors();
            final LogLevel wireLogLevel;

            if (logger.isDebugEnabled()) {
                wireLogLevel = LogLevel.TRACE;
            } else {
                wireLogLevel = null;
            }

            this.transportClient = transportClient;
            this.config = new Config(options, sslContext, wireLogLevel);

            this.requestTimer = new RntbdRequestTimer(
                config.requestTimeoutInNanos(),
                config.requestTimerResolutionInNanos());

            this.eventLoopGroup = new NioEventLoopGroup(threadCount, threadFactory);
            this.endpoints = new ConcurrentHashMap<>();
            this.evictions = new AtomicInteger();
            this.closed = new AtomicBoolean();
        }
 
Example 3
Source File: TrafficLoggingHandler.java    From armeria with Apache License 2.0 4 votes vote down vote up
private TrafficLoggingHandler(boolean server) {
    super("com.linecorp.armeria.logging.traffic." + (server ? "server" : "client"), LogLevel.TRACE);
}