Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Scratch: Return Log Results via ContextAwareLogger #6

Open
wants to merge 3 commits into
base: feb-11-demo
Choose a base branch
from

Conversation

mwestphall
Copy link
Collaborator

  • Add a new LogStatsHandler logger that gathers basic timing and disk usage stats for each log message that occurs
  • Update ContextAwareLogger's Debug/Info/Error methods to return the latest stats gathered by LogStatsHandler

@mwestphall mwestphall requested a review from Saartank February 3, 2025 15:08
@mwestphall mwestphall changed the base branch from main to feb-11-demo February 3, 2025 20:23
Copy link
Collaborator

@Saartank Saartank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have not integrated these new log error display features into all log messages in sample logger in main.go, only in burst mode context log messages. We need to consider how to showcase this functionality in the demo and include that work in this PR.

Would it be a good idea to stop the program if the disk runs out of space? We could integrate this into the log stream code. Would it be easy to simulate?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants