Logging
From Genesys Documentation
Revision as of 17:29, June 25, 2021 by Tony.gilchrist@genesys.com (talk | contribs)
This is a draft page; it has not yet been published.
Contents
Learn how to store logs for Billing Data Service (BDS).
BDS writes all logs to the standard output.
Viewing logs
- Execute the following command to get the pod name:
kubectl -n bds get po
NAME READY STATUS RESTARTS AGE bds-t2023-2023-1624633200-w8nh5 0/1 Completed 0 34m
- Where the NAME string is composed of the following elements: bds-t<tenant id>-<tenant id>-<job start linux time>-<random value>
- Execute the following kubectl command to check the logs:
kubectl logs bds-pod-<name>
- Where <name> is the pod name.
- For example:
kubectl logs bds-pod-wn8bx
Setting the log level
Optionally, you can set the log level using the BDS_LOG_LEVEL environment variable. Acceptable values are:
CRITICAL, 50, ERROR, 40, WARNING, 30, INFO, 20, DEBUG, 10,NOTSET, 0.If you do not set a value, BDS reads the default value from gvars.py. If gvars.py contains no value, BDS uses the default value (DEBUG).