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.
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 thekustomization.yaml
file under thepatches
key:
# 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.
Last updated