Logging
By default, when running the product, the default log root level in INFO so only INFO, WARN and ERROR message are displayed. You can change the logger configuration by following this procedure:
-
Create a custom logback.xml file in which, for example, you can
filter the inner Apache FOP messages:
<configuration> <conversionRule conversionWord="chmsg" converterClass="com.oxygenxml.chemistry.logs.ChemistryMessageConverter"/> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> <pattern>%-5level %class{0} - %chmsg%n</pattern> </layout> </appender> <logger name="org.apache.fop" level="off" additivity="false"> <appender-ref ref="CONSOLE"/> </logger> <root level="info"> <appender-ref ref="CONSOLE"/> </root> </configuration>
-
Set the configuration file from the command line using the
-log-file
parameter.