<reponame>lixfz/DeepTables<gh_stars>100-1000
# -*- coding:utf-8 -*-
"""DeepTables logging module."""

from hypernets.utils import logging
from deeptables.utils import consts

_logger = logging.getLogger(consts.PROJECT_NAME)


def get_logger(logger_name=None):
    if logger_name:
        if logger_name.find('.') >= 0:
            return logging.getLogger(logger_name)
        else:
            return logging.getLogger(f'{consts.PROJECT_NAME}.{logger_name}')
    else:
        return _logger

# -*- coding:utf-8 -*-
"""DeepTables logging module."""

from hypernets.utils import logging
from deeptables.utils import consts

_logger = logging.getLogger(consts.PROJECT_NAME)


def get_logger(logger_name=None):
    if logger_name:
        if logger_name.find('.') >= 0:
            return logging.getLogger(logger_name)
        else:
            return logging.getLogger(f'{consts.PROJECT_NAME}.{logger_name}')
    else:
        return _logger
# -*- coding:utf-8 -*- DeepTables logging module.