Identity Server 8.0.16 does not write logs to the file system in on-prem, Azure App Service, and container deployments.
The issue was caused by updating the logging implementation – replacing the Serilog.Sinks.RollingFile with the Serilog.Sinks.File after the Serilog.Sinks.RollingFile was deprecated by the third party.
To enable logging to the file system, you can reintroduce the Serilog.Sinks.RollingFile by following these customization steps:
?xml version="1.0" encoding="utf-8"?> <Sitecore> <Logging> <Serilog> ... <DefaultLogger> <Name>RollingFile</Name> <Args> <pathFormat>logs\sts-{Date}.log</pathFormat> <outputTemplate>{Timestamp:o} [{Level:u3}] ({Application}/{MachineName}) {Message}{NewLine}{Exception}</outputTemplate> </Args> </DefaultLogger> ... </Serilog> </Logging> </Sitecore>
Note: Make sure to back up the original \Sitecore.IdentityServer.Host.deps.json file before replacing it with the file above, so the changes can be reverted if necessary in the future.