{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/82","repository_url":"https://api.github.com/repos/dotnet/dotnet-docker","labels_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/82/comments","events_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/82/events","html_url":"https://github.com/dotnet/dotnet-docker/issues/82","id":164351063,"number":82,"title":"docker logs not capturing Kestrel output","user":{"login":"jdwilly2001","id":15216189,"avatar_url":"https://avatars.githubusercontent.com/u/15216189?v=3","gravatar_id":"","url":"https://api.github.com/users/jdwilly2001","html_url":"https://github.com/jdwilly2001","followers_url":"https://api.github.com/users/jdwilly2001/followers","following_url":"https://api.github.com/users/jdwilly2001/following{/other_user}","gists_url":"https://api.github.com/users/jdwilly2001/gists{/gist_id}","starred_url":"https://api.github.com/users/jdwilly2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdwilly2001/subscriptions","organizations_url":"https://api.github.com/users/jdwilly2001/orgs","repos_url":"https://api.github.com/users/jdwilly2001/repos","events_url":"https://api.github.com/users/jdwilly2001/events{/privacy}","received_events_url":"https://api.github.com/users/jdwilly2001/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-07T16:22:27Z","updated_at":"2016-07-19T20:28:58Z","closed_at":"2016-07-19T20:28:58Z","body":"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:\r\n\r\n```\r\n[ec2-user@ip-172-17-45-127 ~]$ docker logs da278803df90\r\nProject MyApp.Web.Core (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.\r\nProject MyApp.Web (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.\r\nMicrosoft.Extensions.Configuration.ConfigurationRoot  <-- Console.WriteLine(config)\r\nHosting environment: Development\r\nContent root path: /\r\nNow listening on: http://0.0.0.0:5000\r\nApplication started. Press Ctrl+C to shut down.\r\n```\r\n\r\nBut when requests are made, there are no messages like I get when running the process without docker or with -it\r\n\r\nUPDATE: Log messages from ConsoleLogger do not show messages even when running from \r\ndocker run -it -P <image> /bin/sh\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/comments/233755706","html_url":"https://github.com/dotnet/dotnet-docker/issues/82#issuecomment-233755706","issue_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/82","id":233755706,"user":{"login":"jdwilly2001","id":15216189,"avatar_url":"https://avatars.githubusercontent.com/u/15216189?v=3","gravatar_id":"","url":"https://api.github.com/users/jdwilly2001","html_url":"https://github.com/jdwilly2001","followers_url":"https://api.github.com/users/jdwilly2001/followers","following_url":"https://api.github.com/users/jdwilly2001/following{/other_user}","gists_url":"https://api.github.com/users/jdwilly2001/gists{/gist_id}","starred_url":"https://api.github.com/users/jdwilly2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdwilly2001/subscriptions","organizations_url":"https://api.github.com/users/jdwilly2001/orgs","repos_url":"https://api.github.com/users/jdwilly2001/repos","events_url":"https://api.github.com/users/jdwilly2001/events{/privacy}","received_events_url":"https://api.github.com/users/jdwilly2001/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T20:28:58Z","updated_at":"2016-07-19T20:28:58Z","body":"So this was resolved. I attempted to run the application from / using dotnet run -p /app/MyApp.\r\n\r\nHowever when the boilerplate application loads the appconfig.json, it is looking relative to the run directory. \r\n\r\nusing 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."}}
{"actor":{"display_login":"jdwilly2001"}}