CDLUC3 / mrt-doc

Documentation and Information regarding the Merritt repository
8 stars 4 forks source link

[Zookeeper] Client side logging #2020

Closed mreyescdl closed 1 month ago

mreyescdl commented 2 months ago

Zookeeper client logs can be controlled using Logback configuration file located in the resource directory. Ingest now uses this to remove INFO level logging.

For Storage and Inventory to use, just create a "logback.xml" file and add contents

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