Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ PI Server Installation and Configuration (PI Server 2024 R2)

Modify the Notifications​.UserNLog​.config file

Modify the Notifications​.UserNLog​.config file

  • Last UpdatedOct 02, 2024
  • 1 minute read

Modify the Notifications.UserNLog.config file to enable different levels of logging, change the log file name or location, or add custom logging targets and rules.

Note: The Notifications.UserNLog.config file is not over-written when PI Notifications Service is upgraded. For this reason, changes that you want to preserve across upgrades must be made in the Notifications.UserNLog.config file, and not in the PINotifications.exe.config file.

  1. Navigate to the file %PIHOME64%\Notifications.

  2. Open the Notifications.UserNLog.config file in an editor.

  3. Make changes to the settings in the Notifications.UserNLog.config file.

    To ...

    Set ...

    Enable detailed logging

    <logger name="OSIsoft.PINotifications*" minlevel="Trace" maxlevel="Debug" writeTo="PINotificationsLogfile" enabled="true"/>

    Change the log file location

    <variable name="logPath" value="${specialfolder:folder=CommonApplicationData}\OSIsoft\PINotifications\Logs"/>

    Change the log file name

    <variable name="logfileName" value="$(logPath)\pinotifications-log.txt"/>

    Note: If there are errors in the Notifications.UserNLog.config, logging options in PINotifications.exe.config file will apply.

  4. Save the Notifications.UserNLog.config file.

    PI Notifications Service does not need to be restarted to initiate the changes made in this file.

Related Links
TitleResults for “How to create a CRG?”Also Available in