def this()

in inject/inject-logback/src/main/scala/ch/qos/logback/core/LogbackAsyncAppenderBase.scala [30:78]


  def this() = this(LoadedStatsReceiver)

  private[this] val libraryName = "logback"
  private[this] val gauges: ConcurrentLinkedQueue[Gauge] = new ConcurrentLinkedQueue()

  /** Lazy since this.getName() is not set until post-construction */
  private[this] lazy val scopedStatsReceiver: StatsReceiver =
    new VerbosityAdjustingStatsReceiver(
      statsReceiver.scope(libraryName, "appender", this.getName.toLowerCase()),
      Verbosity.Debug
    )

  private[this] val exportRegistryEntries = Once {
    val registry = new LibraryRegistry(Library(libraryName), Seq(this.getName))

    registry.put(
      "max_queue_size",
      this.getQueueSize.toString
    )

    registry.put(
      "discarding_threshold",
      this.getDiscardingThreshold.toString
    )

    registry.put(
      "include_caller_data",
      this.isIncludeCallerData.toString
    )

    registry.put(
      "max_flush_time",
      this.getMaxFlushTime.toString
    )

    registry.put(
      "never_block",
      this.isNeverBlock.toString
    )

    registry.put(
      Seq("appenders"),
      this.aai // ch.qos.logback.core.spi.AppenderAttachableImpl
        .iteratorForAppenders()
        .asScala
        .map(appender => appender.getName)
        .mkString(",")
    )
  }