Log File Management

iCDR Log Files

iCDR log files are, by default, stored in the following directories:
  • Microsoft Windows Operating Systems: C:\Program Files\SanteSuite\SanteDB\Server
  • Linux Operating Systems: /opt/santesuite/santedb/server
  • Docker: /var/log/
Administrators can change the location of the log file changing the write location on the Diagnostics Configurationsection and restarting the process.
Log files are stored in a rolling name format santedb_yyyyMMdd.log and are never purged automatically.
Administrators MUST set up scheduled tasks to remove or prune their log files according to their own operational policies. Failing to manage log files will eventually result in server disks running out of space, potentially causing service outages.

dCDR Log Files

dCDR log files are stored in the following locations:
  • Microsoft Windows Operating Systems:
    • dCDR Gateway: %systemroot%\SysWOW64\config\systemprofile\local\log\
    • dCDR Applications: %localappdata%\log
  • Linux Operating Systems:
    • dCDR Gateway: ~root/.local/log
    • dCDR Applications: ~/.local/log
  • Docker: /root/.local/log

Log Format

Log files for the dCDR and iCDR have a format as described below:
[email protected] <Level> [TIMESTAMP]: Log Message
For example, this log entry indicates an ERROR on 2021-01-05 from the FHIR plugin on thread 7:
[email protected] <Error> [2021-01-05T00:45:15.9914111-05:00]: Error on WCF FHIR Pipeline: SanteDB.Core.Exceptions.PolicyViolationException: Policy '' was violated by 'Administrator' with outcome 'Deny'
Using the ThreadID is helpful when diagnosing issues in a production environment as it allows for the tracking of a client's execution pathway through the solution.