Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 23, 2024
1 parent fc0ccac commit a45e8a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Empty file added tools/python/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions tools/python/util/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

from .logger import get_logger
from .run import run # noqa: F401
11 changes: 11 additions & 0 deletions tools/python/util/logger.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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

0 comments on commit a45e8a1

Please sign in to comment.