diff --git a/tools/utils.py b/tools/utils.py index 248030e..7386fd8 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -9,8 +9,8 @@ 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' + format="%(asctime)s [%(threadName)s] %(name)s %(levelname)s (%(filename)s:%(lineno)d) - %(message)s", + datefmt='%Y-%m-%d %H:%M:%S' ) _logger = logging.getLogger("MediaCrawler") _logger.setLevel(level)