Best practice for routing logs per module in Spring Modulith (Logback configuration) #1268
Unanswered
vincentlejeune
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working on a modular monolith with Spring Modulith and Logback, and I’d like to route logs to separate files per module (e.g., order.log, payment.log, etc.) to improve diagnostics and monitoring.
I know there are approaches using SiftingAppender with MDC or TurboFilter, but I’d like to understand if there’s a more idiomatic or built-in solution with Spring Modulith, perhaps leveraging module metadata or observability integration.
Specifically, I’d appreciate guidance on:
A sample configuration or reference would be extremely helpful!
Thanks for your work on Modulith
Beta Was this translation helpful? Give feedback.
All reactions