aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/log.py')
-rw-r--r--build_scripts/log.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/build_scripts/log.py b/build_scripts/log.py
new file mode 100644
index 000000000..dfff76a06
--- /dev/null
+++ b/build_scripts/log.py
@@ -0,0 +1,16 @@
+# 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
+from __future__ import annotations
+
+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