diff options
Diffstat (limited to 'build_scripts/log.py')
-rw-r--r-- | build_scripts/log.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build_scripts/log.py b/build_scripts/log.py new file mode 100644 index 000000000..c9ccf3fb9 --- /dev/null +++ b/build_scripts/log.py @@ -0,0 +1,15 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +import logging + +from enum import Enum + +logging.basicConfig(format="[%(levelname)s]: %(message)s", level=logging.INFO) +log = logging.getLogger("qtforpython") + + +class LogLevel(Enum): + QUIET = 1 + INFO = 2 + VERBOSE = 3 |