Elixir Repertoire server configuration files are located in the server configuration directory(./config). The files are
Server configuration, ERS2.xml : determines loading of the core report server functionality as MBeans. There is also an ERS2-sample.xml, which is a backup file, in case you need to recover from any edits.
User configuration, ERS2-Config.xml : setup the report output targets and security access to the targets.
Server log control, log-config.xml: setup the log configuration of the server.
Report Engine configuration, EREngine-config.xml: determines the setup of the rendering parameters for the report engine and the PDF font mapping location.
Other config files are for internal use or debugging purposes.
The administrator can set log-config.xml found in the /RepertoireServer/log to display logs from one or more particular users. In order to do that, the administrator will need to add in the following set of codes into log-config.xml. The actions of the user(s) will all be captured in a log file named activity-user.log.
<appender name="Activity-User"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="../log/activity-user.log"/>
<param name="Append" value="false"/>
<param name="Encoding" value="UTF-8"/>
<param name="MaxBackupIndex" value="5"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{ISO8601},%-5p,%-10X{username}, %m%n"/>
</layout>
<filter class="com.elixirtech.arch.log.UserNameFilter">
<param name="UserName" value="userABC" />
<param name="AcceptOnMatch" value="true" />
</filter>
<filter class="org.apache.log4j.varia.DenyAllFilter"/>
</appender>
If the value set for UserName is userABC, the logs
will be only of userABC. If the administrator wants to capture more than one
particular user, the administrator will need to have additional filter tags
with UserName and AcceptOnMatch attributes.
If the administrator do not want any logs from specified user(s), the administrator will only need to edit the true value to false in AcceptOnMatch attribute and remove the following line from the config file :
<filter class="org.apache.log4j.varia.DenyAllFilter"/>
In order for any changes to take effect, Repertoire Server will need to be restarted.