21 lines
431 B
Python
21 lines
431 B
Python
import logging
|
|
|
|
from .crawler_util import *
|
|
from .slider_util import *
|
|
from .time_util import *
|
|
|
|
|
|
def init_loging_config():
|
|
level = logging.INFO
|
|
logging.basicConfig(
|
|
level=level,
|
|
format="%(asctime)s %(name)s %(levelname)s %(message)s ",
|
|
datefmt='%Y-%m-%d %H:%M:%S'
|
|
)
|
|
_logger = logging.getLogger("MediaCrawler")
|
|
_logger.setLevel(level)
|
|
return _logger
|
|
|
|
|
|
logger = init_loging_config()
|