-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Introduce IBufferedLogger #103138
Introduce IBufferedLogger #103138
Conversation
cf89cdd
to
e2a98ba
Compare
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs
Outdated
Show resolved
Hide resolved
@geeknoid LGTM. Thanks for getting this that fast. I left a minor comment there. @noahfalk @samsp-msft any feedback? |
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs
Outdated
Show resolved
Hide resolved
I think we should do the transform you suggested so that we can extend this in the future if needed, but otherwise LGTM! EDIT: We also need to figure out what we're doing with EventSourceLoggerProvider and OpenTelemetry. At minimum we should make sure OTel folks are on-board with the design and its implications for their logger prior to taking this for review. |
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs
Outdated
Show resolved
Hide resolved
e2a98ba
to
829801e
Compare
@CodeBlanch was in the meeting. Will be good to understand the plan for any OTel logger for that though. |
829801e
to
356da75
Compare
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/BufferedLogRecordMetadata.cs
Outdated
Show resolved
Hide resolved
356da75
to
af0616a
Compare
...s/Microsoft.Extensions.Logging.Abstractions/ref/Microsoft.Extensions.Logging.Abstractions.cs
Outdated
Show resolved
Hide resolved
@kalyanaj for FYI, |
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
af0616a
to
26eccbf
Compare
...nsions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/ConsoleLoggerTest.cs
Outdated
Show resolved
Hide resolved
26eccbf
to
6ad50f7
Compare
6ad50f7
to
ca3dbc5
Compare
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogger.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogger.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs
Outdated
Show resolved
Hide resolved
...s/Microsoft.Extensions.Logging.Abstractions/ref/Microsoft.Extensions.Logging.Abstractions.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLogger.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/SimpleConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/SimpleConsoleFormatter.cs
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/SystemdConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/SystemdConsoleFormatter.cs
Show resolved
Hide resolved
...nsions.Logging.Console/tests/Microsoft.Extensions.Logging.Console.Tests/ConsoleLoggerTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <stoub@microsoft.com>
24045cd
to
3a73735
Compare
3a73735
to
afb13cd
Compare
Fixes #104129