runtime/loglevels.py
author Surkov Sergey <surkovsv93@gmail.com>
Thu, 31 May 2018 13:07:10 +0300
changeset 2170 ce5bd74ed552
parent 1973 cc7a46953471
permissions -rw-r--r--
Add function example to first_steps example

It'll be used in documentation to show how to create function in
Beremiz.
#!/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"]