logging: Set default level as INFO, DEBUG is too spammy.

pull/13/merge
Paul Sokolovsky 2014-11-14 02:42:53 +02:00
rodzic 728434bb67
commit 1bb98d55cc
2 zmienionych plików z 13 dodań i 5 usunięć

Wyświetl plik

@ -50,7 +50,7 @@ class Logger:
self.log(CRITICAL, msg, *args)
_level = NOTSET
_level = INFO
_loggers = {}
def getLogger(name):
@ -60,6 +60,6 @@ def getLogger(name):
_loggers[name] = l
return l
def basicConfig(level=DEBUG):
def basicConfig(level=INFO):
global _level
_level = level

Wyświetl plik

@ -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',
version='0.0.3',
description='logging package for MicroPython',
version='0.0.4',
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',
author='MicroPython Developers',
author_email='micro-python@googlegroups.com',
maintainer='MicroPython Developers',
maintainer_email='micro-python@googlegroups.com',
license='MIT',
py_modules=['logging'])