自带的日志工具类

天问 7d48c32932 Update 'README.md' 9 months ago
README.md 7d48c32932 Update 'README.md' 9 months ago

README.md

logging

Usage

import logging

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

def main() -> None:
    logger.info("Initializing service")
    logger.info("Service finished initializing")

if __name__ == "__main__":
    main()