<configuration>
  <if condition='property("CROMWELL_LOGGER").equals("SERVER")'>
    <then>
      <appender name="SERVER_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <!-- Support multiple-JVM writing to the same log file -->
        <prudent>true</prudent>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
          <fileNamePattern>cromwell.%d{yyyy-MM-dd}.log</fileNamePattern>
          <maxHistory>30</maxHistory>
        </rollingPolicy>
        <encoder>
          <pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
        </encoder>
      </appender>
      <root level="TRACE">
        <appender-ref ref="SERVER_APPENDER" />
      </root>
    </then>
    <else>
      <appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
          <layout class="cromwell.logging.TerminalLayout" />
        </encoder>
      </appender>
      <root level="INFO">
        <appender-ref ref="CONSOLE_APPENDER" />
      </root>
      <logger name="com.zaxxer.hikari" level="ERROR"/>
      <logger name="HikariPool" level="ERROR"/>
    </else>
  </if>
</configuration>

<configuration>
  <if condition='property("CROMWELL_LOGGER").equals("SERVER")'>
    <then>
      <appender name="SERVER_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <!-- Support multiple-JVM writing to the same log file -->
        <prudent>true</prudent>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
          <fileNamePattern>cromwell.%d{yyyy-MM-dd}.log</fileNamePattern>
          <maxHistory>30</maxHistory>
        </rollingPolicy>
        <encoder>
          <pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
        </encoder>
      </appender>
      <root level="INFO">
        <appender-ref ref="SERVER_APPENDER" />
      </root>
      <logger name="com.zaxxer.hikari" level="ERROR"/>
      <logger name="HikariPool" level="ERROR"/>
    </then>
    <else>
      <appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
          <layout class="cromwell.logging.TerminalLayout" />
        </encoder>
      </appender>
      <root level="INFO">
        <appender-ref ref="CONSOLE_APPENDER" />
      </root>
      <logger name="com.zaxxer.hikari" level="ERROR"/>
      <logger name="HikariPool" level="ERROR"/>
    </else>
  </if>
</configuration>

Fix excessive server logging as per DSDEEPB-1049
Fix excessive server logging as per DSDEEPB-1049
