<configuration>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
        <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file><%= scope.lookupvar('cosmos::params::cosmos_basedir') %>/var/log/cosmos-api.log</file>
        <encoder>
            <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
        </encoder>
    </appender>

    <logger name="es.tid.cosmos" level="DEBUG">
        <appender-ref ref="STDOUT" />
    </logger>

    <root level="INFO">
        <appender-ref ref="FILE" />
    </root>
</configuration>

<configuration>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
        <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file><%= scope.lookupvar('cosmos::params::cosmos_basedir') %>/var/log/cosmos-api.log</file>
        <encoder>
            <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
        </encoder>
    </appender>

    <logger name="es.tid.cosmos" level="DEBUG">
        <appender-ref ref="STDOUT" />
    </logger>

    <!-- Loggers that are reporting false errors. -->
    <logger name="com.wordnik.swagger.play.HelpApi" level="OFF"/>
    <logger name="com.wordnik.swagger.core.util.TypeUtil" level="OFF"/>

    <root level="INFO">
        <appender-ref ref="FILE" />
    </root>
</configuration>

Disable loggers reporting false errors
Disable loggers reporting false errors

As reported in #1475, Swagger is logging several errors that are not
having any negative effect in the app. This loggers should be disabled
to avoid false errors to be reported in Cosmos log.
