Skip to content
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

Add appendLoggerName aspect #893

Merged
merged 5 commits into from
Oct 11, 2024
Merged

Add appendLoggerName aspect #893

merged 5 commits into from
Oct 11, 2024

Conversation

somdoron
Copy link
Contributor

@somdoron somdoron commented Oct 9, 2024

We are upgrading from ZIO 1, where the previous version of zio.logging appended the logger name to the existing logger name. In the new version, it replaces it. This PR suggests introducing a new aspect, appendLoggerName, to append a string to the existing logger name.

Our codebase relies on setting the logger name. For example, when our RPC framework receives an incoming message, we add the service name and method name to the logger name.

@somdoron somdoron requested a review from a team as a code owner October 9, 2024 18:16
@justcoon
Copy link
Contributor

@somdoron thanks for contribution, i have to take a look on CI issues first ..., as builds are failing currently

@justcoon
Copy link
Contributor

hi @somdoron, i think you need to run scalafix

@justcoon justcoon merged commit e9daa65 into zio:master Oct 11, 2024
15 checks passed
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