-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker logs not capturing Kestrel output #82
Comments
@jdwilly2001 I was unable to repro this. For my web app, I see the ASP.NET logging by default when doing Have you verified that the web requests are successfully going through to your application when it's running in the Docker container? For example, if you go to |
@jdwilly2001, were you able to work through this issue? If so, please feel free to close this issue. If not, please provide the information @naamunds requested. Thanks |
So this was resolved. I attempted to run the application from / using dotnet run -p /app/MyApp. However when the boilerplate application loads the appconfig.json, it is looking relative to the run directory. using the WORKDIR directive in the docker file fixed the issue. I believe it was failing to load the configuration and thus the logging was not properly established. |
I am trying to configure docker to capture the default ConsoleLogger from Kestrel. When i run the process with -d, I do not see any log messages, i see the standard 'startup' message:
But when requests are made, there are no messages like I get when running the process without docker or with -it
UPDATE: Log messages from ConsoleLogger do not show messages even when running from
docker run -it -P /bin/sh
The text was updated successfully, but these errors were encountered: