DC 5.8 Stdout logging in core services

Sometimes one of the Digizuite core (Or automation workflow) services refuses to start, in those cases the normal logger is unable to bootstrap, and you need to enable stdout logging. This is done by accessing the web.config of the individual service. The config file will look something like this out of the box:

<?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath=".\dsl-service.exe" stdoutLogEnabled="false" stdoutLogFile="D:\LogFiles\Digizuite\dc.mycompany.com\Core_dsl-service_stdout" hostingModel="inprocess" /> </system.webServer> </location> </configuration>

To enable stdout logging change stdoutLogEnabled to true. This will automatically restart the service. The log file will then be available at the location stdoutLogFilepoints to, with an additional timestamp attached to the file name.

Once you are done checking the log file, make sure to disable stdout logging again, as it will keep writing to that file until the disk is full, and does no automatic cleanup.