group-wbl/.venv/lib/python3.13/site-packages/onnxruntime/tools/logger.py

12 lines
322 B
Python
Raw Permalink Normal View History

2026-01-09 09:12:25 +08:00
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import logging
def get_logger(name, level=logging.DEBUG):
logging.basicConfig(format="%(asctime)s %(name)s [%(levelname)s] - %(message)s")
logger = logging.getLogger(name)
logger.setLevel(level)
return logger