Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagexml
titleModifying the verbosity of a logger
 <logger name="org.apache.wicket">
     <level value="error"/>
 </logger>
Tip

Artifactory loads any changes made to the Logback configuration file within several seconds without requiring a restart.

Minimizing Output to catalina.out

When running Artifactory as a background service, Artifactory log messages are redirected to catalina.out which may cause this file to be over-inflated with content. To reduce the volume of logging to catalina.out we recommend adding a "threshold filter" to the "CONSOLE" appender in logback.xml as follows:

Code Block
...
 
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">

     <!-- Add a Threshold filter to reduce log output that is below the specified threshold. In the example below, only ERROR level log messages will be added -->
     <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
       <level>ERROR</level>
     </filter>


       <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
           <layout class="org.artifactory.logging.layout.BackTracePatternLayout">
               <pattern>%date ${artifactory.contextId}[%thread] [%-5p] \(%-20c{3}:%L\) - %m%n</pattern>
           </layout>
       </encoder>
   </appender>
...

 

...