runtime/loglevels.py
author Edouard Tisserant
Tue, 02 Oct 2018 15:52:11 +0200
changeset 2306 908471b344ba
parent 1973 cc7a46953471
permissions -rw-r--r--
Some cleanup in WampClient and added functions that are usefull for extensions that need to use pub/sub.
#!/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"]