Enable DEBUG logging in Shift Services
Enable DEBUG logging for Shift Services
By default all KOBIL Shift services run with INFO logging level which is sufficient for regular monitoring of internal processing. In case of functional debugging, the logging level DEBUG provides more detailed logging into the Pod log output.
Use the "valuesOverride" configuration option to enable this.
Find sample here i.e. when to set logging level to DEBUG and for AST-CA(astca) service.
The "logging.level" is required to be set specifically per each KOBIL Shift service.
Verify from sub-chart metaconfiguration values.yaml (download per i.e.: helm pull kobil/astca
)
the sub-chart specific configuration for logging level.
Adopt the values into the KOBIL Shift metaconfiguration "valuesOverride" data-structure.
This will enable the DEBUG logging to the Pod log output.
Note: In case hierarchy is not matching the metaconfiguration is not honored.
set DEBUG logging level
astca:
enabled: true
valuesOverride:
logging:
level: "DEBUG"
nettyLevel: "WARN
When the configuration is applied and deployed you will find the configured services Pods at runtime with Environment-Variable "LOG_LEVEL=DEBUG" set.
Once this is done and deployment was successful with "logging.level" enabled the DEBUG output is the Pod logs. This applies to all KOBIL Shift services each and it is required per each service to use the "valuesOverride" to enable specific logging level (there is no common parameter at global level).
Here is a sample to set the DEBUG for "some services" (IDP + 3 AST / ca, Login, TMS, version and SCP-Notifier) sample configuration DEBUGG logging level
<sample>
nameOverride: ""
fullnameOverride: ""
global:
# -- Image pull secrets added to pod spes generated by this chart.
imagePullSecrets:
- registry-secret
...
..
# -- Configuration for idp-core
idpCore:
enabled: true
valuesOverride:
logging:
#Supported values are ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE and WARN.
level: DEBUG
replica: 2
database:
host: postgres
port: 5432
name: "idp_core_db"
...
# -- Configuration for astca
astca:
enabled: true
replicaCount: 1
valuesOverride:
logging:
level: "DEBUG"
nettyLevel: "WARN"
...
..
# -- Configuration for astlogin
astLogin:
enabled: true
replicaCount: 1
valuesOverride:
logging:
level: "DEBUG"
...
..
# -- Configuration for ast-tms
astTms:
enabled: true
replicaCount: 1
valuesOverride:
logging:
level: "DEBUG"
...
..
# -- Configuration for ast-version
astVersion:
enabled: true
replicaCount: 1
valuesOverride:
logging:
level: "DEBUG"
...
..
# -- Configuration for scp-notifier
scpNotifier:
enabled: true
replicaCount: 1
valuesOverride:
logging:
#Supported values are ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE and WARN.
level: DEBUG
...
..