Enable Debug Logging#

As part of your infrastructure-as-code deployment, you may wish to control log levels of the deployments using a customization.

By default, ESS uses INFO level logging. To change a service’s log level, you can create an overlay to update the QUARKUS_LOG_LEVEL value. For example, to enable DEBUG level logging for ess-ldp, you could use the following customization and apply it to your cluster.

Example Customization#

  1. Create an overlay structure as described in Customize ESS.

  2. Add the customization overlay:

    #kustomization.yaml
    
    ...
    
    apiVersion: kustomize.config.k8s.io/v1alpha1
    kind: Component
    
    patches:
      - target:
          kind: Deployment
          name: ess-ldp
        patch: |-
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: not-important
          spec:
            template:
              spec:
                containers:
                  - name: ess-ldp
                    env:
                      - name: QUARKUS_LOG_LEVEL
                        value: DEBUG