Logging

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Billing Data Service Private Edition Guide for version Current of Billing Data Service.

Learn how to store logs for Billing Data Service (BDS).

Related documentation:

BDS writes all logs to the standard output. 

Viewing logs

  1. 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>
  2. Execute the following 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).

Retrieved from "https://all.docs.genesys.com/BDS/Current/BDSPEGuide/Logging (2022-05-20 21:16:48)"