Enabling debug-level application logging
search cancel

Enabling debug-level application logging

book

Article ID: 171221

calendar_today

Updated On:

Products

Information Centric Analytics

Issue/Introduction

Debug-level logging for Information Centric Analytics (ICA) provides additional information for troubleshooting processes and errors that occur at the application level. This includes SQL query calls to the RiskFabric database, e-mail notification processes, DLP writeback operations, etc.

Environment

Version : 6.x

Component : Microsoft Internet Information Services

Resolution

Enable Debug Logging

To enable debug-level logging for ICA, follow this procedure:

  1. Download the attached file Log4net.txt and rename it as Log4net.config
  2. Copy the file Log4net.config to the following folder on the ICA application server hosting IIS:
    %SystemDrive%\Windows\System32\inetsrv
  3. As an administrator, open a command prompt or PowerShell terminal and execute the following command:
    iisreset.exe

Once enabled, the application will begin writing log files to the following default path:

%SystemDrive%\Temp

The path can be changed by modifying the file value of the FileAppender key in the Log4net.config file:

    <appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
        <file value="c:\temp\rf.log"/>

Log files will be named in the following format:

rf.log.<yyyyMMdd>.log

Each file will grow to 2 MB before rolling-over. This limit can also be modified in the Log4net.config file. If debug logging is left enabled, consider scripting a cleanup process to remove old log files and preserve free drive space.

Disable Debug Logging

To disable debug-level logging for ICA, follow this procedure:

  1. In Windows Explorer, navigate to the following path:
    %SystemDrive%\Windows\System32\inetsrv
  2. Rename the file Log4net.config as Log4net.txt, or delete the file
  3. As an administrator, open a command prompt or PowerShell terminal and execute the following command:
    iisreset.exe

Attachments

log4net.txt get_app