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:
- Open the .config file.
- Locate the Hyland.Logging section of the file.
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.
- Save the file and restart the application.