Truncating Log Length - Diagnostics Service and Diagnostics Console - English - Foundation 22.1 - OnBase - external - OnBase/Diagnostics-Service-and-Diagnostics-Console/English/Foundation-22.1/Diagnostics-Service-and-Diagnostics-Console/Configuration/Enabling-Logging-for-Modules/Hyland.Logging/Truncating-Log-Length - 2022-08-18

Diagnostics Service and Diagnostics Console

Platform
OnBase
Product
Diagnostics Service and Diagnostics Console
Release
Foundation 22.1
License
ft:locale
en-US

Long string values can be configured for automatic truncation in logs. To configure this option:

  1. Find the Hyland.Logging section of the application's .config file.
  2. Under this section, prior to the Route subsection, find the following line:

    <Hyland.Logging TruncateLogValues="NUMBER">

    If the line is not already present, add it before the <Routes> subsection.

  3. Replace NUMBER with the number of characters to truncate strings after, in quotation marks. The default value for this is 1024.
  4. Save the file and restart the application.