To receive logging messages, a logging level must be specified for a logging route in the Hyland.Logging section of the application's .config file. To set the logging level:
- Find the logging route you want to configure in the Hyland.Logging section.
Within the Route section for the route, ensure the following line is included:
<add key="minimum-level" value="Trace" />
This enables detailed messaging to the diagnostics route.Note:
Depending on the application, this line might be included by default but commented out. Remove the <!-- and --> from the line to uncomment the line.
Change value="Trace" to value="Debug".
The value Trace logs the most detailed messages possible. These messages may contain sensitive information. Due to this, Trace should not be used in any production environment.
To refine the severity of messages being received by the diagnostics route, you can edit the key and value attributes in the following manners:
The key value can be set to minimum-level, which limits the lowest-severity log level that is received. You can add an additional line that includes maximum-level, which limits the highest-severity log level that is received.
The value can be set to any of the following log level severities, listed from most severe to least severe.
Log level names in the value attribute are case sensitive.
Logs that describe an unrecoverable application, system crash, or catastrophic failure that requires immediate attention.
Logs that highlight when the current flow of execution is stopped due to a failure. These logs indicate a failure in the current activity, but not an application-wide failure.
Logs that highlight an abnormal or unexpected event in the application flow but do not otherwise cause the application to stop.
Logs that track the general flow of the application.
Logs that are used for interactive investigation during development.
Logs that contain the most detailed messages and may include sensitive data. These logs should never be enabled in a production environment.
A logging category that does not write any logging messages.
For example, the Hyland.Logging section of the .config file could be edited to:
<add key="minimum-level" value="Debug" /> <add key="maximum-level" value="Critical" />
This example specifies that the logging route only receives logging messages with a severity level of Debug or above, and it receives no messages with a higher severity level than Critical.Note:
The default severity level of a route is a minimum of Information and a maximum of Critical. The route uses these severity levels if it does not include a minimum-level or maximum-level line specified in the .config file.
- Save the file and restart the application.