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
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:
Log files for the dCDR and iCDR have a format as described below:
Source@ThreadID <Level> [TIMESTAMP]: Log Message
For example, this log entry indicates an ERROR on 2021-01-05 from the FHIR plugin on thread 7:
SanteDB.Messaging.FHIR@RSRVR-ThreadPoolThread-7 <Error> [2021-01-05T00:45:15.9914111-05:00]: Error on WCF FHIR Pipeline: SanteDB.Core.Exceptions.PolicyViolationException: Policy '184.108.40.206.4.1.333220.127.116.11.18.104.22.168' 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.