Creating Log Files - Creating Log Files - OnBase - Diagnostics Service and Diagnostics Console - OnBase/Diagnostics-Service-and-Diagnostics-Console/Foundation-26.1/Diagnostics-Service-and-Diagnostics-Console/Configuration/Enabling-Logging-for-Modules/Hyland.Logging/Creating-Log-Files - Foundation 26.1 - Foundation 26.1

Diagnostics Service and Diagnostics Console

Platform
OnBase
Product
Diagnostics Service and Diagnostics Console
Release
Foundation 26.1
License
ft:lastPublication
2026-09-11T15:10:13.288000
ft:locale
en-US

Routes can be configured to write logs to separate external .json files. These files can later be opened for viewing in the Diagnostics Console or in a text editor such as Notepad.

To configure logs to be written to files in the .config file of the application:

  1. Open the .config file.
  2. Locate the Hyland.Logging section of the file.
  3. In Route sub-section for the diagnostics route you want to configure, enter the following tag:
    <add key="File" value="FILEPATH"/>

    For FILEPATH, enter the full file path for the log file, including the name of the file you want the log to be saved as. This file must be a .json file. For example, <add key="File" value="C:\Users\jsmith\Desktop\log.json" /> would write the logs to a log.json in that directory.

    Additional keys that can be used in the file: "OutputFormat", "FileRollInterval", "FileRollOnSize", "FileCountLimit", "FileByteLimit". For example, this is how a tag will all keys could look like:
    <add key="File" value="C:\HylandLogs\log.json"/>
    <add key="OutputFormat" value="JSON"/>
    <add key="FileRollOnSize" value="true"/>
    <add key="FileRollInterval" value="Infinite"/>
    <add key="FileCountLimit" value="31"/>
    <add key="FileByteLimit" value="1073741824"/>
  4. Save the file and restart the application.