Update Log Level#
ESS services support a subset of log levels supported by Quarkus:
FATAL
ERROR
WARN
INFO
(Default level)DEBUG
By default, ESS’ log level is configured to INFO
level:
This outputs logs with severity level
INFO
and higher (i.e., outputsINFO
,WARN
,ERROR
andFATAL
levels).This excludes logs with security level below
INFO
(i.e., excludesDEBUG
).
As part of your infrastructure-as-code deployment, you may wish to control log levels of the deployments using a customization.
For example, when debugging an issue you may temporarily enable
DEBUG
level logs to get more granular information on system
behavior.
To change a service’s log level, you can create an overlay to update
the QUARKUS_LOG_LEVEL
environment variable.
Note
Starting in 2.2, ESS also supports changing the level of log messages using redaction. See Logging Redaction for details.
Example Debug Logging Customization File#
You can use the following procedure to enable DEBUG
level
logging for pod-provisioning
:
Go to your ESS installation directory:
cd ${HOME}/ess
Modify the
kustomization.yaml
(i.e., step 3 of the Applying Your Customizations procedure).Specifically, add the highlighted content to the
kustomization.yaml
file under thepatches
key:Tip
If
patches
list does not exist inkustomization.yaml
, add the keypatches
as well.# kustomization.yaml in your ESS installation directory # ... Preceding content omitted for brevity # ... patches: - target: kind: Deployment name: ess-pod-provision patch: |- apiVersion: apps/v1 kind: Deployment metadata: name: ess-pod-provision spec: template: spec: containers: - env: - name: QUARKUS_LOG_LEVEL value: DEBUG name: ess-pod-provision
Continue with the rest of the Applying Your Customizations procedure.
Tip
Remember to reset the log level when you’re finished debugging.