<configuration>
  <variable name="VINYLDNS_LOG_LEVEL" value="${VINYLDNS_LOG_LEVEL:-INFO}" />
  <conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />

  <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
    <encoder class="co.elastic.logging.logback.EcsEncoder">
      <serviceName>vinyldns-portal</serviceName>
      <serviceNodeName>vinyldns-portal</serviceNodeName>
    </encoder>
  </appender>
  <!--
    The logger name is typically the Java/Scala package name.
    This configures the log level to log at for a package and its children packages.
  -->
  <logger name="play" level="INFO" />
  <logger name="application" level="DEBUG" />

  <logger name="com.zaxxer.hikari" level="ERROR">
    <appender-ref ref="CONSOLE"/>
  </logger>

  <root level="${VINYLDNS_LOG_LEVEL}">
    <appender-ref ref="CONSOLE" />
  </root>

</configuration>
