mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
### Description Instead, set level to DEBUG for the logger returned. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Otherwise, this function call overrides root logger level setting, which affects logging facility of other python packages.
11 lines
309 B
Python
11 lines
309 B
Python
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
import logging
|
|
|
|
|
|
def get_logger(name):
|
|
logging.basicConfig(format="%(asctime)s %(name)s [%(levelname)s] - %(message)s")
|
|
logger = logging.getLogger(name)
|
|
logger.setLevel(logging.DEBUG)
|
|
return logger
|