Application logging options

Users with GRANTA MI system administrator privileges can view and change MI:Viewer logging options via the Admin link in the toolbar.

  1. On the MI:Viewer toolbar, click Admin.
  2. Click on the Logging tab.

MI:Viewer logging

MI:Viewer writes log files of its activities. The default location of these files is App_Data\logs in the MI:Viewer installation folder, typically: C:\Inetpub\wwwroot\mi\App_Data\logs.

A number of different application log files may be generated:

The logs are set to roll over on a daily basis. The log files from the previous day have their date appended, for example, MIViewer.2015-05-18.log.

Logging level

The logging level determines the amount of information that is logged in the MI:Viewer.log file. The higher the logging level, the more information is written to the log file. You can change the logging level permanently or just for the current MI:Viewer session from the Logging Level panel on the Logging tab.

The levels are named after the severity of events they are used to track, and go from logging only the highest severity events (level= ERROR) to logging all events (level = DEBUG):

To change the logging level:

  1. In the MI:Viewer toolbar, click on Admin.
  2. Click the Logging tab.
  3. Select the required level from the Logging level list.
  4. By default, any changes to the logging level made on the Logging tab will remain in effect until the MI:Viewer application restarts. To save the selected level as the new MI:Viewer application default, select Persist this change to the config file.
  5. Click Save.

The default logging level is specified in the MI:Viewer configuration file log4net.config, typically located here:

C:\Inetpub\wwwroot\mi\App_Data\log4net.config

Round-trip logging

When enabled, round-trip information (URL, user, and time taken) for requests is written to RoundTripInfo.log. This allows you to monitor the availability and performance of MI:Viewer processes. Round-trip logging is disabled by default as it degrades application performance and can result in very large log files. For that reason, we recommend enabling round-trip logging only if instructed to do so by Granta Support.

Show page load statistics

When this option is enabled, you can view data on page load and round trip times in MI:Viewer:

 Click to view an example

Download MI:Viewer event log files

You can download MI:Viewer application event  log files containing application error, warning, information, and debug messages, from the Download log files panel.  Log files are downloaded in a zip file.

Download MI:Server logs

You can download MI:Server log files from the Download MI:Server logs panel.  Downloaded files are saved in a zip file that includes: