Skip to content

Commit

Permalink
fix: add stdout log prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu committed Jan 3, 2023
1 parent cf221b9 commit fc046ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
metadata:
name: {{ .Release.Name }}-config-cm
namespace: {{ .Release.Namespace }}
labels:
Expand Down Expand Up @@ -81,6 +81,7 @@ data:
| replace "scriptLogLevel" "script_log_level"
| replace "auditStatsLogTarget" "audit_log_target"
| replace "auditStatsLogLevel" "audit_log_level"
| replace "enableStdoutLogPrefix" "enable_stdout_log_prefix"
| squote
}}
{{- if index .Values "global" "config-api" "enabled" }}
Expand All @@ -96,6 +97,7 @@ data:
| replace "ldapStatsLogLevel" "ldap_stats_log_level"
| replace "scriptLogTarget" "script_log_target"
| replace "scriptLogLevel" "script_log_level"
| replace "enableStdoutLogPrefix" "enable_stdout_log_prefix"
| squote
}}
{{- end }}
Expand Down Expand Up @@ -164,6 +166,7 @@ data:
| replace "ldapStatsLogLevel" "ldap_stats_log_level"
| replace "scriptLogTarget" "script_log_target"
| replace "scriptLogLevel" "script_log_level"
| replace "enableStdoutLogPrefix" "enable_stdout_log_prefix"
| squote
}}
{{- end }}
Expand All @@ -174,6 +177,7 @@ data:
| replace "fido2LogLevel" "fido2_log_level"
| replace "persistenceLogTarget" "persistence_log_target"
| replace "persistenceLogLevel" "persistence_log_level"
| replace "enableStdoutLogPrefix" "enable_stdout_log_prefix"
| squote
}}
{{- end }}
Expand Down
10 changes: 9 additions & 1 deletion flex-cn-setup/pygluu/kubernetes/templates/helm/gluu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,8 @@ global:
enabled: true
# -- App loggers can be configured to define where the logs will be redirected to and the level of each in which it should be displayed.
appLoggers:
# -- Enable log prefixing which enables prepending the STDOUT logs with the file name. i.e auth-server-script ===> 2022-12-20 17:49:55,744 INFO
enableStdoutLogPrefix: "true"
# -- jans-auth.log target
authLogTarget: "STDOUT"
# -- jans-auth.log level
Expand Down Expand Up @@ -913,13 +915,15 @@ global:
enabled: true
# -- App loggers can be configured to define where the logs will be redirected to and the level of each in which it should be displayed.
appLoggers:
# -- Enable log prefixing which enables prepending the STDOUT logs with the file name. i.e config-api_persistence ===> 2022-12-20 17:49:55,744 INFO
enableStdoutLogPrefix: "true"
# -- configapi.log target
configApiLogTarget: "STDOUT"
# -- configapi.log level
configApiLogLevel: "INFO"
# -- config-api_persistence.log target
persistenceLogTarget: "FILE"
# -- jans-auth_persistence.log level
# -- config-api_persistence.log level
persistenceLogLevel: "INFO"
# -- config-api_persistence_duration.log target
persistenceDurationLogTarget: "FILE"
Expand Down Expand Up @@ -955,6 +959,8 @@ global:
enabled: true
# -- App loggers can be configured to define where the logs will be redirected to and the level of each in which it should be displayed.
appLoggers:
# -- Enable log prefixing which enables prepending the STDOUT logs with the file name. i.e fido2 ===> 2022-12-20 17:49:55,744 INFO
enableStdoutLogPrefix: "true"
# -- fido2.log target
fido2LogTarget: "STDOUT"
# -- fido2.log level
Expand Down Expand Up @@ -1047,6 +1053,8 @@ global:
enabled: true
# -- App loggers can be configured to define where the logs will be redirected to and the level of each in which it should be displayed.
appLoggers:
# -- Enable log prefixing which enables prepending the STDOUT logs with the file name. i.e jans-scim ===> 2022-12-20 17:49:55,744 INFO
enableStdoutLogPrefix: "true"
# -- jans-scim.log target
scimLogTarget: "STDOUT"
# -- jans-scim.log level
Expand Down

0 comments on commit fc046ba

Please sign in to comment.