<filename>brev_cli/config.py
import sys
import logging

logging.basicConfig(
    format="[%(levelname)s] [%(name)s] %(asctime)s %(message)s", level=logging.INFO
)
logging.StreamHandler(sys.stdout)
logger = logging.getLogger("brev-cli")


class Dev:
    api_url = "http://localhost:5000"
    log_level = logging.DEBUG
    cotter_api_key_id = "<KEY>"


class Staging:
    api_url = "https://staging.brev.dev"
    log_level = logging.INFO
    cotter_api_key_id = "<KEY>"


class Prod:
    api_url = "https://app.brev.dev"
    log_level = logging.WARNING
    cotter_api_key_id = "<KEY>"


config = Prod

logger.setLevel(config.log_level)

<filename>brev_cli/config.py
import sys
import logging

logging.basicConfig(
    format="[%(levelname)s] [%(name)s] %(asctime)s %(message)s", level=logging.INFO
)
logging.StreamHandler(sys.stdout)
logger = logging.getLogger("brev-cli")


class Dev:
    api_url = "http://localhost:5000"
    log_level = logging.DEBUG
    cotter_api_key_id = "<KEY>"


class Staging:
    api_url = "https://staging.brev.dev"
    log_level = logging.INFO
    cotter_api_key_id = "<KEY>"


class Prod:
    api_url = "https://app.brev.dev"
    log_level = logging.WARNING
    cotter_api_key_id = "<KEY>"


config = Prod

logger.setLevel(config.log_level)
