sevensolutions / nomad-iis

🧩 A TaskDriver plugin for HashiCorp Nomad to run IIS workloads.
MIT License
13 stars 1 forks source link

Logging Support #6

Closed sevensolutions closed 6 months ago

sevensolutions commented 1 year ago

IIS worker processes don't log to stdout which is pretty bad. But maybe we can provide a named pipe to the application so the app developer can configure logging to it manually.

Nomad is already creating a named pipe for logging, but only the Administrator account is permitted to access it. So we should try to wrap it into a new one and permit the AppPool user.

sevensolutions commented 1 year ago

Named pipes dont play nicely with regular file-loggers because the pipe breaks if the connection gets closed. Therefore i've built an experimental UDP-based log-sink.

sevensolutions commented 8 months ago

Also interesting: https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.administration.sitelogfile?view=iis-dotnet

sevensolutions commented 8 months ago

This is what we can do in IIS Docker Containers: https://blogs.iis.net/jeonghwan/how-to-use-iis-insider-docker-tag