Fluid Topics Log Management - Fluid Topics - 3.4

Fluid Topics Installation and Administration Guide

Product
Fluid Topics
FT_Version
3.4
Platform
RHEL
Category
Reference Guide

Fluid Topics' logs are managed through the logback standard (SLF4J).

By default, Fluid Topics log configuration is defined in the following file:

/usr/local/afs7/Fluid-Topics/web/conf/logging/prod-logger.xml

with the following content:

<configuration>
<!-- http://logback.qos.ch/manual/appenders.html#FileAppender -->
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/usr/local/afs7/logs/daemon/fluidtopics.log</file>
<append>true</append>
<encoder>
<pattern>%date - %X{FT_APPLICATION_NAME} [%level] %logger - %message %xException{10}\n</pattern>
</encoder>
</appender>

<!-- http://logback.qos.ch/manual/configuration.html#rootElement -->
<root level="ERROR">
<appender-ref ref="FILE"/>
</root>

<!-- http://logback.qos.ch/manual/configuration.html#loggerElement -->
<logger name="akka" level="WARN"/>
<logger name="net.antidot" level="WARN"/>
</configuration>

The prod-logger.xml configuration file is divided in the three following parts:

  • Appender: defines the different ways to log messages: what is done with logs, where they are written, where they can be found, if there are sent by email, and so on.
  • Root: defines the default value for all loggers.
  • Logger: defines elements that send information written into log files. Each logger can be configured to modify the level of logs that can be consulted. In Fluid Topics:
    • net.antidot: is the main logger of the whole Fluid Topics solution.
    • akka: is the logger for the web server used in Fluid Topics.