Java Code Examples for io.netty.util.internal.logging.InternalLoggerFactory#getDefaultFactory()
The following examples show how to use
io.netty.util.internal.logging.InternalLoggerFactory#getDefaultFactory() .
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: NettyHelper.java From dubbox with Apache License 2.0 | 4 votes |
public static void setNettyLoggerFactory() { InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory(); if (factory == null || !(factory instanceof DubboLoggerFactory)) { InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory()); } }
Example 2
Source File: NettyHelper.java From dubbo3 with Apache License 2.0 | 4 votes |
public static void setNettyLoggerFactory() { InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory(); if (factory == null || !(factory instanceof DubboLoggerFactory)) { InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory()); } }
Example 3
Source File: NettyHelper.java From dubbo-remoting-netty4 with Apache License 2.0 | 4 votes |
public static void setNettyLoggerFactory() { InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory(); if (factory == null || !(factory instanceof DubboLoggerFactory)) { InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory()); } }
Example 4
Source File: NettyLogger.java From light-task-scheduler with Apache License 2.0 | 4 votes |
public static void setNettyLoggerFactory() { InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory(); if (factory == null || !(factory instanceof LtsLoggerFactory)) { InternalLoggerFactory.setDefaultFactory(new LtsLoggerFactory()); } }
Example 5
Source File: NettyHelper.java From dubbo-remoting-netty4 with Apache License 2.0 | 4 votes |
public static void setNettyLoggerFactory() { InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory(); if (factory == null || !(factory instanceof DubboLoggerFactory)) { InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory()); } }