Truncating Log Length - Truncating Log Length - 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/Truncating-Log-Length - 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

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 Routes subsection, find the following line:

    <Hyland.Logging TruncateLogValues="NUMBER">

    If TruncateLogValues is not present, add it within the <Hyland.Logging> tag.

    Note:

    If TruncateLogValues is set to 0, the logs will not be truncated.

  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.