IMPAX 6.5.1 Application Server Knowledge Base > Logging events and problems

Changing the configuration of web service log files


The Application Server creates a new log file daily for each application, web service, and Windows service logged. To modify the location where web service log files are saved, the maximum size of the log files, the number of log files saved, and filtering out information from the log files, change the configuration of the log4net.config file for each web service.

To change the configuration of the web services log files

  1. Navigate to E:\inetpub\wwwroot.

  2. Double-click the directory for the web service.

  3. For example, double-click AgfaHC.Pacs.Web.

  4. Open the log4net.config file.

  5. To modify the performance logs, search for the following section of the code:

    <appender name="RollingFileAppender" type="AgfaHC.Logging.Log4Net.RollingFileAppender, AgfaHC">   <param name="File" value="C:/Impax/Logs/AgfaHC.Pacs.Web.log" />   <param name="AppendToFile" value="true" />   <param name="RollingStyle" value="Composite" />   <param name="MaxSizeRollBackups" value="5" />   <param name="MaximumFileSize" value="5MB" />   <param name="DatePattern" value="yyyyMMdd_HHmmss_fff" />   <layout type="log4net.Layout.PatternLayout">

    1. To modify these settings for performance logging, modify the following section of the log4net.config file:

      <appender name="PerformanceRollingFileAppender" type="AgfaHC.Logging.Log4Net.RollingFileAppender, AgfaHC">

    2. To change the log file location, change the value= to the new log file location in the line:

      <param name="File" value="C:/Impax/Logs/AgfaHC.Pacs.Web.log" />

    3. To change the maximum size of the log file, change the value= to the new log file size in the line:

      <param name="MaximumFileSize" value="5MB" />

    4. To change the number of log files saved, change the value= to the number of log files to be saved at one time in the line:

      <param name="MaxSizeRollBackups" value="5" />

  6. To modify the filtering logs, search for the following section of the code:

    <param name="Key" value="UserHostAddress" /> <param name="StringToMatch" value="10.237.225.212" /> </filter--> <!--filter type="log4net.Filter.MdcFilter"> <param name="Key" value="UserAccount" /> <param name="StringToMatch" value="plambert" /> </filter--> <!--filter type="log4net.Filter.DenyAllFilter" /--> </appender>

    1. To filter out information from a specific Host Address, modify the following section of the log4net.config file:

      <param name="Key" value="UserHostAddress" /> <param name="StringToMatch" value="10.237.225.212" />

    2. To filter out the information from a specific User Account, modify the following section of the log4net.config file:

      <param name="Key" value="UserAccount" /> <param name="StringToMatch" value="plambert" />

      Important!

      Important!

      You can only filter out the Host Address or the User Account but not both parameters at the same time. To make sure that the information is filtered out, you must add the DenyAllFilter class to the end of the filter chain.

  7. Save and close the log4net.config file.

  8. Repeat these steps for each web service.


See also


Topic number: 11439

Applies to: IMPAX 6.5.1 Application Server Knowledge Base