Self-diagnostics log file has strange content
See original GitHub issueBug Report
I am using OpenTelemetry 1.1.0 (commit ce46d001d5ed08d91e7750b4859410330d57e7a7
). Running [AspNetCore example] (https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/examples/AspNetCore) with target framework netcoreapp3.1
, release configurations and OTEL_DIAGNOSTICS.json
config file:
{
"LogDirectory": ".",
"FileSize": 1024,
"LogLevel": "LogAlways"
}
After some requests to https://localhost:5001/WeatherForecast/ the log file Examples.AspNetCore.exe.41136.log
was created.
Examples.AspNetCore.exe.41136.log
When I open .log file in Notepad++ I see there internal events generated by OpenTelemetry (logs) with some unsupported symbols:
But I am expecting to see there only logs.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7 (4 by maintainers)
Top Results From Across the Web
weird characters in log session
I think you you find that shows the content of the file with the colour intact — not showing the control chars themselves....
Read more >Application Insights - Not getting data for one IIS site [closed]
I configured it yesterday and the strange thing is that this site was sending data briefly from one server only, and then that...
Read more >Using SQL Server Diagnostics (Preview) | All About Data
These files are located in the \LOG\ folder of your install. The information for my instance was as below. Dark Clouds Are Ahead....
Read more >strange characters in the log file from bash + how to avoid ...
linux - strange characters in the log file from bash + how to avoid them ? - Unix & Linux Stack Exchange.
Read more >we're still setting up the microsoft team for this group
Hello, I'm setting up in Microsoft 365 groups an external collaborator, he has access to the Sharepoint Site, but then he tries to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@xiang17
What is the expected way to use this file then?
I would also like to have that documented.
This will lead to even stranger content when the file starts again from the beginning, especially if this happens mid-stacktrace and you get something that looks like a normally formatted stack trace with impossible content.
I don’t think “minimal-overhead” in that extreme sense is a desirable feature. I’d rather want a developer-friendly debug feature by default.