Configure the logback library

JFrog Platform Administration Documentation

Content Type
Administration / Platform
ft:sourceType
Paligo

Edit the logback xml file in the $JFROG_HOME/<product>/var/etc/<microservice>/logback.xml file. For example, to configure Artifactory to use syslog, edit the $JFROG_HOME/artifactory/var/etc/artifactory/logback.xml file.

  1. Add the following syslog appender to the logback xml (next to the other appenders)

    <appender name="SYSLOG" class= "ch.qos.logback.classic.net.SyslogAppender">
     <syslogHost>localhost</syslogHost>
     <facility>SYSLOG</facility>
     <suffixPattern>[%thread] %logger %msg</suffixPattern>
    </appender>
  2. Add the following appender to the output:

    <root> 
     <level value="warn"/> 
     <appender-ref ref="CONSOLE"/> 
     <appender-ref ref="FILE"/>
     <appender-ref ref="SYSLOG"/>
    </root>
  3. Save the file, and restart the service.