# Path: pyteltools/utils/log.py
# def new_logger(name):
#     """!
#     Get a new logger
#     @param name <str>: logger name
#     """
#     logger = logging.getLogger(name)
#     if settings.COLOR_LOGS:
#         coloredlogs.install(logger=logger, level=settings.LOGGING_LEVEL, fmt=settings.LOGGING_FMT_CLI,
#                             level_styles=LEVEL_STYLES, field_styles=FIELD_STYLES)
#     else:
#         handler = logging.StreamHandler()
#         handler.setFormatter(logging.Formatter(settings.LOGGING_FMT_CLI))
#         logger.addHandler(handler)
#         logger.setLevel(settings.LOGGING_LEVEL)
#     return logger


import argparse
import coloredlogs
import logging
import os.path
import sys
from pyteltools.conf import settings
from .log import new_logger
"""
Prepare module logger

Handles some exceptions (if `in_slf` or `out_slf` arguments are present)
"""




LINE_WIDTH = 80


# Path: pyteltools/utils/log.py
# def new_logger(name):
#     """!
#     Get a new logger
#     @param name <str>: logger name
#     """
#     logger = logging.getLogger(name)
#     if settings.COLOR_LOGS:
#         coloredlogs.install(logger=logger, level=settings.LOGGING_LEVEL, fmt=settings.LOGGING_FMT_CLI,
#                             level_styles=LEVEL_STYLES, field_styles=FIELD_STYLES)
#     else:
#         handler = logging.StreamHandler()
#         handler.setFormatter(logging.Formatter(settings.LOGGING_FMT_CLI))
#         logger.addHandler(handler)
#         logger.setLevel(settings.LOGGING_LEVEL)
#     return logger


# Path: pyteltools/utils/cli_base.py
import argparse
import coloredlogs
import logging
import os.path
import sys
from pyteltools.conf import settings
from .log import new_logger

"""
Prepare module logger

Handles some exceptions (if `in_slf` or `out_slf` arguments are present)
"""




LINE_WIDTH = 80


logger = new_logger(__name__)