Java Code Examples for io.netty.util.internal.logging.InternalLoggerFactory#getInstance()
The following examples show how to use
io.netty.util.internal.logging.InternalLoggerFactory#getInstance() .
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: LoggingHandler.java From netty.book.kor with MIT License | 5 votes |
/** * Creates a new instance with the specified logger name. * * @param name the name of the class to use for the logger * @param level the log level */ public LoggingHandler(String name, LogLevel level) { if (name == null) { throw new NullPointerException("name"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(name); this.level = level; internalLevel = InternalLogLevel.DEBUG; }
Example 2
Source File: LoggingHandler.java From netty.book.kor with MIT License | 5 votes |
/** * Creates a new instance with the specified logger name. * * @param clazz the class type to generate the logger for * @param level the log level */ public LoggingHandler(Class<?> clazz, LogLevel level) { if (clazz == null) { throw new NullPointerException("clazz"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(clazz); this.level = level; internalLevel = InternalLogLevel.DEBUG; }
Example 3
Source File: LoggingHandler.java From netty.book.kor with MIT License | 5 votes |
/** * Creates a new instance whose logger name is the fully qualified class * name of the instance. * * @param level the log level */ public LoggingHandler(LogLevel level) { if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(getClass()); this.level = level; internalLevel = InternalLogLevel.DEBUG; }
Example 4
Source File: LoggingHandler.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
/** * Creates a new instance whose logger name is the fully qualified class * name of the instance.创建一个新实例,其日志记录器名称是实例的完全限定类名。 * * @param level the log level */ public LoggingHandler(LogLevel level) { if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(getClass()); this.level = level; internalLevel = level.toInternalLevel(); }
Example 5
Source File: LoggingHandler.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
/** * Creates a new instance with the specified logger name.使用指定的日志记录器名称创建一个新实例。 * * @param clazz the class type to generate the logger for * @param level the log level */ public LoggingHandler(Class<?> clazz, LogLevel level) { if (clazz == null) { throw new NullPointerException("clazz"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(clazz); this.level = level; internalLevel = level.toInternalLevel(); }
Example 6
Source File: LoggingHandler.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
/** * Creates a new instance with the specified logger name.使用指定的日志记录器名称创建一个新实例。 * * @param name the name of the class to use for the logger * @param level the log level */ public LoggingHandler(String name, LogLevel level) { if (name == null) { throw new NullPointerException("name"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(name); this.level = level; internalLevel = level.toInternalLevel(); }
Example 7
Source File: LoggingHandler.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
/** * Creates a new instance with the specified logger name. * * @param level the log level */ public LoggingHandler(String name, LogLevel level) { if (name == null) { throw new NullPointerException("name"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(name); this.level = level; internalLevel = level.toInternalLevel(); }
Example 8
Source File: LoggingHandler.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
/** * Creates a new instance with the specified logger name. * * @param level the log level */ public LoggingHandler(Class<?> clazz, LogLevel level) { if (clazz == null) { throw new NullPointerException("clazz"); } if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(clazz); this.level = level; internalLevel = level.toInternalLevel(); }
Example 9
Source File: SpdyFrameLogger.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
public SpdyFrameLogger(InternalLogLevel level) { if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(getClass()); this.level = level; }
Example 10
Source File: LoggingHandler.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
/** * Creates a new instance whose logger name is the fully qualified class * name of the instance. * * @param level the log level */ public LoggingHandler(LogLevel level) { if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(getClass()); this.level = level; internalLevel = level.toInternalLevel(); }
Example 11
Source File: SpdyFrameLogger.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
public SpdyFrameLogger(InternalLogLevel level) { if (level == null) { throw new NullPointerException("level"); } logger = InternalLoggerFactory.getInstance(getClass()); this.level = level; }
Example 12
Source File: LoggerX.java From spring-boot-protocol with Apache License 2.0 | 4 votes |
LoggerX(String name) { this.logger = InternalLoggerFactory.getInstance(name); }
Example 13
Source File: NetLogFactory.java From util4j with Apache License 2.0 | 4 votes |
public static InternalLogger getLogger(Class<?> c) { return InternalLoggerFactory.getInstance(c); }
Example 14
Source File: LoggerX.java From spring-boot-protocol with Apache License 2.0 | 4 votes |
LoggerX(Class clazz) { this.logger = InternalLoggerFactory.getInstance(clazz); }
Example 15
Source File: LoggerX.java From spring-boot-protocol with Apache License 2.0 | 4 votes |
LoggerX() { this.logger = InternalLoggerFactory.getInstance(LoggerX.class); }
Example 16
Source File: Http2FrameLogger.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
public Http2FrameLogger(LogLevel level, Class<?> clazz) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(clazz)); }
Example 17
Source File: Http2FrameLogger.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
public Http2FrameLogger(LogLevel level, String name) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(name)); }
Example 18
Source File: Http2FrameLogger.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
public Http2FrameLogger(LogLevel level) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(Http2FrameLogger.class)); }