Elixir Repertoire Server configuration.

Elixir Repertoire server configuration files are located in the server configuration directory(./config). The files are

Server Log Control

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.