A log relay reads application records from a file or other sink and writes them to stdout, allowing container logging to capture them without changing the application. section 19.2
Use the pattern when:
- The application runs in the background and cannot be configured to write directly to stdout. section 19.2
- The relay starts after the application and watches its log file. section 19.2
- Health checks connect application and relay failures, because either process can leave the container in a misleading state. section 19.2
Package and start the relay
Copy the application and utility into the image. On Windows, run `start /B dotnet TimeCheck.dll && dotnet Tail.dll /logs timecheck.log`; on Linux, run `dotnet TimeCheck.dll & dotnet Tail.dll /logs timecheck.log`.
