js/jasminesnake/__init__.py

36 lines
1.0 KiB
Python
Raw Normal View History

"""Pylint tells me this module should have a docstring.
So here it is.
"""
import logging
__version__ = "0.0.7"
__snake__ = r"""
2020-04-15 16:45:22 +10:00
_________ _________
/ \ / \
/ /~~~~~\ \ / /~~~~~\ \
2020-04-15 16:45:22 +10:00
| | | | | | | |
| | | | | | | |
| | | | | | | | /
| | | | | | | | //
(o o) \ \_____/ / \ \_____/ /
\__/ \ / \ /
| ~~~~~~~~~ ~~~~~~~~
^
"""
LOG_LEVELS = {
0: {"level": logging.CRITICAL, "format": u"[%(asctime)s] %(message)s"},
1: {
"level": logging.ERROR,
"format": u"[%(asctime)s] [%(levelname)s] %(message)s",
},
2: {"level": logging.WARN, "format": u"[%(asctime)s] [%(levelname)s] %(message)s"},
3: {"level": logging.INFO, "format": u"[%(asctime)s] [%(levelname)s] %(message)s"},
4: {
"level": logging.DEBUG,
"format": u"[%(asctime)s] [%(levelname)s] %(filename)s:%(lineno)d: %(message)s",
},
}
2020-04-15 16:15:56 +10:00
# TODO: make it usable as a module too