aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/log.py
blob: 16e4cca2099976e702d9b577961955889260a893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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