runtime/loglevels.py
author Edouard Tisserant
Wed, 04 Jul 2018 14:10:03 +0200
branchnevow_service_rework
changeset 2210 81949104291d
parent 1973 cc7a46953471
permissions -rw-r--r--
Nevow based web interface now show simple Log message sending form for basic runtime, and allow extensions to add their own web settings.
#!/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"]