Logging

From Genesys Documentation
Jump to: navigation, search
This is a draft page; it has not yet been published.

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:

devops@developer:~$ kubectl -n bds get po

NAME                             READY   STATUS      RESTARTS   AGE

bds-t2023-2023-1624633200-w8nh5  0/1     Completed  0          34m

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-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).