FioranoMQ Client Logging
For FioranoMQClientRTL logging to take place, the logger levels and appenders have to be mentioned through properties file or xml file. The jboss application server uses log4j.xml file. In this case, the FioranoMQClientRTL loggers' level and appender has to be mentioned in the same log4j.xml.
Example: If the logger name is "Fiorano.FMQ.Services.ClientRootLoggerServices.FMQClientLoggerServices", the logger level is INFO and the log appender is RollingFileAppender, then
<category name="Fiorano.FMQ.Services.ClientRootLoggerServices.FMQClientLoggerServices">
<priority value="INFO"/>
<appender-ref ref="FioranoFileAppender"/>
</category>
<appender name="FioranoFileAppender" class="org.apache.log4j.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/log.out"/>
<param name="MaxFileSize" value="10MB"/>
<param name="MaxBackupIndex" value="5"/>
<param name="Append" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
log4j.properties file will contain the logger names used in FioranoMQClientRTL. By default, "log4j.properties" file will be provided under %FIORANO_HOME%\fmq\bin.
- For information regarding Appender, MaxFileSize, MaxBackupIndex, Append, Levels and layout, please refer to the Logger Configuration section in the MQ Configuration parameters article.
- For information regarding log4j.properties configurations and Parent-child relationship in FioranoMQ Client Logger, please refer Configuring Logger.