-
Notifications
You must be signed in to change notification settings - Fork 71
feat(console): add envId and orgId to the loggers #11707
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
feat(console): add envId and orgId to the loggers #11707
Conversation
221ee55
to
1d306db
Compare
44b98a3
to
d31bc00
Compare
f4dfbf5
to
4edb6c6
Compare
helm/values.yaml
Outdated
@@ -470,9 +470,11 @@ api: | |||
name: api | |||
logging: | |||
debug: false | |||
contextualLoggingEnabled: false | |||
contextualLoggingEncoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{orgId} %X{envId}] %-5level %logger{36} - %msg%n%n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contextualLoggingEncoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{orgId} %X{envId}] %-5level %logger{36} - %msg%n%n" | |
contextualLoggingEncoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{orgId} %X{envId}] %-5level %logger{36} - %msg%n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
helm/values.yaml
Outdated
stdout: | ||
json: false | ||
encoderPattern: "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" | ||
encoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{orgId} %X{envId}] %-5level %logger{36} - %msg%n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't we say by default it should stay the same as before (i.e. without org and env)?
Sorry I don't remember 🤷🏻 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we agreed on that. It's updated now. 👍
fab06a1
to
110559f
Compare
110559f
to
dde17ca
Compare
Issue
https://gravitee.atlassian.net/browse/APIM-9157
Description
Summary
This Pull Request primarily introduces contextual logging functionality within the system. The changes enable the inclusion of organization and environment IDs in log entries, improving traceability and debugging capabilities.
Main Changes
contextualLoggingEnabled
: A flag to enable/disable contextual logging.contextualLoggingEncoderPattern
: A customizable logging pattern for contextual logs.📚 View the storybook of this branch here