microsoft / dotnet-framework-docker

The repo for the official docker images for .NET Framework on Windows Server Core.
https://hub.docker.com/_/microsoft-dotnet-framework
MIT License
692 stars 332 forks source link

Example of logging support #1105

Closed davhdavh closed 5 months ago

davhdavh commented 5 months ago

Describe the Problem

It is unclear how to configure logging in the .net framework application, so that it gets output as normal docker-style logging.

None of the samples use logging.

Describe the Solution

Just a single log message from inside the container ending up as docker-style log is enough.