Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

If you open these in a text editor you will see that these log files have an <appender> section which takes care of the name and location of the log file together with the process of rolling over files by size or date. In the example below when, the log file reaches 100000 (100KB) in size, a new file will be generated and a maximum of 1000 log files will be kept.

Note

The "MaximumFileSize" value setting can be specified in MB rather than KB, e.g. value="1MB". Make sure that the "MaximumFileSize" and "MaxSizeRollBackups" values are suitable for your infrastructure, i.e. large and/or numerous log files could fill the hard drive potentially causing problems for iShare and other applications running on the server(s). Equally, having large log files may slow the read/write process during iShare logging, which could affect the speed of the application for end users.


Code Block
title<appender> section
   <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <param name="File" value="logs\Studio.log" />
      <param name="AppendToFile" value="true" />
      <param name="MaxSizeRollBackups" value="10" />
      <param name="MaximumFileSize" value="100000" />
      <param name="RollingStyle" value="Size" />
      <param name="StaticLogFileName" value="true" />
      <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%d %-5p %c %m%n" />
	  <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
      </layout>
    </appender>

...

These log configuration files have multiple <appender> sections with different .log file names; followed by <logger> sections controlling the name, level and appender-ref for different areas.

Address Search

The logging of address searches is switched on by default and may be switched off by editing the log4net.config file which may be found in the \web folder.  Simply change the level value to "OFF" if you do not wish Address Searches to be logged.

...