"""
This module helps configure logging app-wide.
"""

import logging.config
import logging
import json


def configure_logging(logger=None):
    """ Reads app/logging-config.json to initialize logging config."""
    with open("app/logging-config.json") as json_file:
        logging.config.dictConfig(json.load(json_file))

    if logger is not None:
        for handler in logging.getLogger().handlers:
            logger.addHandler(handler)

"""
This module helps configure logging app-wide.
"""

import logging.config

from app.core.config_loader import get_config


def configure_logging():
    """ Reads app/configs/logging_config.json to initialize logging config."""
    config = get_config("logging", {"config.json": "simple"})
    logging.config.dictConfig(config)

Use new config method for logger.