-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: Adding configurable timezone support for log timestamps #3955
base: v3.x.x
Are you sure you want to change the base?
fix: Adding configurable timezone support for log timestamps #3955
Conversation
@@ -241,6 +241,7 @@ _BPX_JOBNAME=${ZWE_zowe_job_prefix}${CACHING_CODE} ${JAVA_BIN_DIR}java \ | |||
-Dspring.profiles.active=${ZWE_configs_spring_profiles_active:-} \ | |||
-Dspring.profiles.include=$LOG_LEVEL \ | |||
-Dapiml.logs.location=${ZWE_zowe_logDirectory} \ | |||
-Dapiml.logging.timezone=${ZWE_zowe_logging_timezone} \ |
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.
Please provide a default value here and the the other start.sh
scripts.
-Dapiml.logging.timezone=${ZWE_zowe_logging_timezone} \ | |
-Dapiml.logging.timezone=${ZWE_zowe_logging_timezone:UTC} \ |
@@ -41,6 +41,7 @@ logging: | |||
org.apache.tomcat.util.net.SSLUtilBase: ERROR | |||
org.springframework.security.config.annotation.web.builders.WebSecurity: ERROR | |||
javax.net.ssl: ERROR | |||
timezone: ${apiml.logging.timezone:UTC} |
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.
Please describe this field in the additional-spring-configuration-metadata.json. Ideally with sample values.
Signed-off-by: Hrishikesh Nalawade <[email protected]> Signed-off-by: hrishikesh-nalawade <[email protected]>
af87d16
to
a2d6936
Compare
…ference in additional-spring-configuration-metadata.json Signed-off-by: hrishikesh-nalawade <[email protected]>
Signed-off-by: hrishikesh-nalawade <[email protected]>
This reverts commit e13caad. Signed-off-by: hrishikesh-nalawade <[email protected]>
236da89
to
02de538
Compare
Quality Gate passedIssues Measures |
Description
Currently, the API ML logs are generated with UTC timestamps. These changes will allow users to configure the timezone for log timestamps, giving them the option to set it to either their
local timezone
orUTC
. This configuration can be managed within thezowe.yaml
file using theZWE_zowe_logging_timezone
variable.Linked to #3921
Type of change
Checklist: