Diagnostics Settings
The diagnostics settings panel can be used to control the logging infrastructure in the SanteDB iCDR host server. The configuration panel provides an enumeration of the registered log sources and allows administrators to set each log level for independent services.
The writers section allows for the setting of an output method for the diagnostic sources.
Writer | Description | Initialization Data |
---|---|---|
ConsoleTraceWriter | Outputs diagnostic logs to the console. Only useful for running SanteDB in console mode. | |
RolloverTextWriterTraceWriter | Outputs diagnostics logs to a file on the disk. | The filename of the log file |
SystemDiagnosticsTraceWriter | Emits diagnostics logs to the System Debugging output. In Windows you can use dbgview.exe to see these messages. | |
EventLogTraceWriter | Emits diagnostics logs to the SanteDB diagnostics event source in the Windows Event Log |
Additionally, the global filter can be set for the writer, or each trace source.
Log Level | Contents |
---|---|
LogAlways | Any log which is generated by the component is emitted to the diagnostic writer. |
Verbose | Detailed logging is enabled. This include errors, warnings, critical service faults, debugging information, enter/exit events. |
Informational | Logs should contain errors, warnings, critical faults, and high level diagnostic information such as status of jobs, message issues, etc. |
Warning | Logs should only contain warnings, errors and critical service faults. Warnings are typically errors which can be safely ignored or don't result in failed transactions. |
Error | Logs should only contain errors and critical service faults. Errors are exceptional cases which cause transactions to not be processed. |
Critical | Logs should only contain data related to critical system failures where the SanteDB host process stops or becomes unresponsive. |
Last updated