kopia lustrzana https://github.com/micropython/micropython-lib
logging: Set default level as INFO, DEBUG is too spammy.
rodzic
728434bb67
commit
1bb98d55cc
|
@ -50,7 +50,7 @@ class Logger:
|
||||||
self.log(CRITICAL, msg, *args)
|
self.log(CRITICAL, msg, *args)
|
||||||
|
|
||||||
|
|
||||||
_level = NOTSET
|
_level = INFO
|
||||||
_loggers = {}
|
_loggers = {}
|
||||||
|
|
||||||
def getLogger(name):
|
def getLogger(name):
|
||||||
|
@ -60,6 +60,6 @@ def getLogger(name):
|
||||||
_loggers[name] = l
|
_loggers[name] = l
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def basicConfig(level=DEBUG):
|
def basicConfig(level=INFO):
|
||||||
global _level
|
global _level
|
||||||
_level = level
|
_level = level
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
from distutils.core import setup
|
import sys
|
||||||
|
# Remove current dir from sys.path, otherwise setuptools will peek up our
|
||||||
|
# module instead of system.
|
||||||
|
sys.path.pop(0)
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-logging',
|
setup(name='micropython-logging',
|
||||||
version='0.0.3',
|
version='0.0.4',
|
||||||
description='logging package for MicroPython',
|
description='logging module for MicroPython',
|
||||||
|
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
author='MicroPython Developers',
|
author='MicroPython Developers',
|
||||||
author_email='micro-python@googlegroups.com',
|
author_email='micro-python@googlegroups.com',
|
||||||
|
maintainer='MicroPython Developers',
|
||||||
|
maintainer_email='micro-python@googlegroups.com',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
py_modules=['logging'])
|
py_modules=['logging'])
|
||||||
|
|
Ładowanie…
Reference in New Issue