<commit_before><configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${widgetLoggingDir-./}widgets.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <!-- daily rollover -->
      <fileNamePattern>widgets.%d{yyyy-MM-dd}.log.gz</fileNamePattern>

      <!-- keep 20 days' worth of history -->
      <maxHistory>20</maxHistory>
    </rollingPolicy>

    <encoder>
      <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
    </encoder>
  </appender> 

  <logger name="widget.timer" level="debug">
    <appender-ref ref="FILE"/>
  </logger>
  <logger name="edu.duke.oit.vw.scalatra.WidgetUpdatesFilter" level="debug">
    <appender-ref ref="FILE"/>
  </logger>
  <logger name="edu.duke.oit.vw.scalatra.WidgetsFilter" level="debug">
    <appender-ref ref="FILE"/>
  </logger>

  <root level="info">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE"/>
  </root>

</configuration>
<commit_msg>FDP-1346 Fixing logging config<commit_after><configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${widget.logging.dir:-}widgets.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <!-- daily rollover -->
      <fileNamePattern>widgets.%d{yyyy-MM-dd}.log.gz</fileNamePattern>

      <!-- keep 20 days' worth of history -->
      <maxHistory>20</maxHistory>
    </rollingPolicy>

    <encoder>
      <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
    </encoder>
  </appender> 

  <logger name="widget.timer" level="debug">
    <appender-ref ref="FILE"/>
  </logger>
  <logger name="edu.duke.oit.vw.scalatra.WidgetUpdatesFilter" level="debug">
    <appender-ref ref="FILE"/>
  </logger>
  <logger name="edu.duke.oit.vw.scalatra.WidgetsFilter" level="debug">
    <appender-ref ref="FILE"/>
  </logger>

  <root level="info">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE"/>
  </root>

</configuration>

{'fraction_non_alphanumeric': 0.18419090231170768, 'fraction_numerical': 0.009694258016405667, 'mean_word_length': 3.5706984667802386, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6515606', 'n_tokens_mistral': 963, 'n_tokens_neox': 926, 'n_words': 145}