Skip to content

Fine-grained logging for PartitionFlow owned classes#769

Draft
fillson-shady wants to merge 1 commit intomasterfrom
vfilatov/fine-grained-logging
Draft

Fine-grained logging for PartitionFlow owned classes#769
fillson-shady wants to merge 1 commit intomasterfrom
vfilatov/fine-grained-logging

Conversation

@fillson-shady
Copy link
Copy Markdown
Contributor

No description provided.


val acquire = Resource.eval {
for {
log <- logOf(classOf[TimerFlowOf[F]]).map(_.withMdc(Mdc.Eager("key" -> context.key)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how will this look in logs, could you give me an example please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Based on a pattern used for the appender it's something like:

INFO  [io-compute-3][c.e.k.f.t.TimerFlowOf] [key=7ze4zp5t3ru61ff70a9] - Something happened

Of course we may use prefixed instead of withMdc as it was before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants