/** * Creates a new logger instance with the name of the specified class. */ public static InternalLogger getInstance(Class<?> clazz) { return getInstance(clazz.getName()); }
/** * Creates a new logger instance with the name of the specified class. */ public static InternalLogger getInstance(Class<?> clazz) { return getInstance(clazz.getName()); }
/** * Creates a new logger instance with the name of the specified class. */ public static InternalLogger getInstance(Class<?> clazz) { return getInstance(clazz.getName()); }
protected Object readResolve() throws ObjectStreamException { return InternalLoggerFactory.getInstance(name()); }
protected Object readResolve() throws ObjectStreamException { return InternalLoggerFactory.getInstance(name()); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
protected Object readResolve() throws ObjectStreamException { return InternalLoggerFactory.getInstance(name()); }
/** * 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(); }
public Http2FrameLogger(LogLevel level) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(Http2FrameLogger.class)); }
public Http2FrameLogger(LogLevel level, String name) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(name)); }
public Http2FrameLogger(LogLevel level, Class<?> clazz) { this(level.toInternalLevel(), InternalLoggerFactory.getInstance(clazz)); }
/** * 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(); }
/** * 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(); }
public void retain() { if (counter.incrementAndGet() == 1) { if (instanceCounter.getAndIncrement() > 0) { InternalLogger instance = InternalLoggerFactory.getInstance(getClass()); instance.info("Initialized PauseDetectorWrapper more than once."); } pauseDetector = new SimplePauseDetector(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(10), 3); Runtime.getRuntime().addShutdownHook(new Thread("ShutdownHook for SimplePauseDetector") { @Override public void run() { if (pauseDetector != null) { pauseDetector.shutdown(); } } }); } }
public DynamicHttp2FrameLogger(LogLevel level, Class<?> clazz) { super(level, clazz); this.level = checkNotNull(level.toInternalLevel(), "level"); this.logger = checkNotNull(InternalLoggerFactory.getInstance(clazz), "logger"); }
private static final InternalLogger logger = InternalLoggerFactory.getInstance(MultithreadEventLoopGroup.class);
private static final InternalLogger logger = InternalLoggerFactory.getInstance(MultithreadEventLoopGroup.class);
public DynamicHttp2FrameLogger(LogLevel level, Class<?> clazz) { super(level, clazz); this.level = checkNotNull(level.toInternalLevel(), "level"); this.logger = checkNotNull(InternalLoggerFactory.getInstance(clazz), "logger"); }