Skip to content
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 log duplication in VS #7507

Open
Tratcher opened this issue Feb 12, 2019 · 0 comments
Open

Docker log duplication in VS #7507

Tratcher opened this issue Feb 12, 2019 · 0 comments
Labels
affected-very-few This issue impacts very few customers area-hosting Includes Hosting area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-nice-to-have This label is used by an internal tool
Milestone

Comments

@Tratcher
Copy link
Member

Docker logs are duplicated in VS when you run under the debugger (F5). The two loggers are the console logger and the debug logger. Both logs are routed to the VS Debug output window. We should find a way to detect this and suppress the console logger.

Generic host 3.0.0-preview3:

Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
Microsoft.Hosting.Lifetime: Information: Hosting environment: Production
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.Hosting.Lifetime[0]
      Content root path: /app
Microsoft.Hosting.Lifetime: Information: Content root path: /app
The program '[314] dotnet' has exited with code 0 (0x0).
The program 'dotnet' has exited with code 0 (0x0).

Side note: the control characters are the console color markers. dotnet/extensions#673

WebHost (3.0.0-preview1):

Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET https://localhost:44330/  
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET https://localhost:44330/  
Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/2.2.2/Microsoft.AspNetCore.WebUtilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 116.2878ms 200 
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 116.2878ms 200 
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET https://localhost:44330/favicon.ico  
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET https://localhost:44330/favicon.ico  
�[40m�[32minfo�[39m�[22m�[49m: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 15.0096ms 200 
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 15.0096ms 200 

@glennc

@Tratcher Tratcher added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates area-hosting labels Feb 12, 2019
@mkArtakMSFT mkArtakMSFT removed the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Feb 13, 2019
@analogrelay analogrelay added this to the Backlog milestone Jun 27, 2019
@Tratcher Tratcher added affected-very-few This issue impacts very few customers enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-nice-to-have This label is used by an internal tool labels Nov 9, 2020 — with ASP.NET Core Issue Ranking
@amcasey amcasey added area-hosting Includes Hosting and removed feature-hosting labels Jun 1, 2023
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affected-very-few This issue impacts very few customers area-hosting Includes Hosting area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-nice-to-have This label is used by an internal tool
Projects
None yet
Development

No branches or pull requests

5 participants