Fluid Topics' logs are managed through the logback standard (SLF4J).
The installation package includes a default log configuration file at the following location:
/usr/local/afs7/Fluid-Topics/web/conf/logging/prod-logger.xml
The package management system deploys the file during installation.
The file contains 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.
-
It is possible to replace the default log configuration file by a custom one.