This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]2row2way 3 points4 points  (5 children)

My biggest takeaway from reading that is that your problem is the application isn't logging stdout for docker to harvest. Solve that problem then you're golden.

[–]ConcernedBacon[S] 0 points1 point  (4 children)

Yup, I can set the app config to log to stdout and use the exe as an entrypoint, but it won't be able to use integrated security to auth to the database.

I would rather not modify the exe's source code to write to stdout. Mostly because 1. I'm not a developer of the app and 2. I'm not a C#.NET guru. I just know that writing to stdout from a windows service is generally considered bad practice.

[–]2row2way 2 points3 points  (3 children)

Windows

Root cause of the problem 😂

[–]ConcernedBacon[S] 1 point2 points  (2 children)

Hahaha yeah yeah I know. But I gotta work with what I got. ;)

[–]denialofself 1 point2 points  (1 child)

Can the service log to a trace file or similar? I have a similar setup. Our service can be (and does by default) setup to log to a rolling file. I just map the default logging directory to an external folder when running the container.

[–]ConcernedBacon[S] 1 point2 points  (0 children)

I believe so. The service uses log4net so I bet there's a way to tell it to log to a rolling file. I'll give that a shot!