beremiz
Clone
Summary
Browse
Changes
Graph
CLI: Explicitely wait for user interrupt (-k) and flush stdout each line.
2022-07-17, Edouard Tisserant
da7b461f54b7
CLI: Explicitely wait for user interrupt (-k) and flush stdout each line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING.Runtime file for copyrights details.
LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]