izihawa-loglib 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,9 @@ from .formatters import DefaultFormatter, DefaultHttpFormatter
9
9
  from .handlers import QueueHandler
10
10
 
11
11
 
12
- def configure_logging(config, make_path=True):
12
+ def configure_logging(config, make_path=True, default_level=logging.INFO):
13
13
  if config.get('application', {}).get('debug', False) or 'logging' not in config:
14
- logging.basicConfig(stream=sys.stdout, level=logging.INFO)
14
+ logging.basicConfig(stream=sys.stdout, level=default_level)
15
15
  else:
16
16
  if make_path:
17
17
  mkdir_p(config['log_path'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: izihawa-loglib
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Author: Pasha Podolsky
5
5
  Author-email: ppodolsky@me.com
6
6
  Home-page: https://github.com/izihawa/loglib
@@ -0,0 +1,6 @@
1
+ izihawa_loglib-1.0.2.dist-info/METADATA,sha256=Hmsn_T7Eo--L0-5CJmSfdjCj7cTh4xZKIz_0e_erdPg,358
2
+ izihawa_loglib-1.0.2.dist-info/RECORD,,
3
+ izihawa_loglib-1.0.2.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
4
+ izihawa_loglib/__init__.py,sha256=rXRM1vrq7F5CeoUJjlVIx8I5Ft0t5o1h3ULQoAMVLGE,1028
5
+ izihawa_loglib/formatters.py,sha256=fFpNdF9PjsW9sQgVDVwVfmFPnKkrbo1RTMvYxFRH114,2750
6
+ izihawa_loglib/handlers.py,sha256=PLqgMnP6Mvb9btW7iRtI5PGCRocTLeiYW5QaiNOEuzk,1073
@@ -1,6 +0,0 @@
1
- izihawa_loglib-1.0.1.dist-info/METADATA,sha256=dnPc51xBz3833r-pCsdh13sm-1QME52dDxN5u7xmxmE,358
2
- izihawa_loglib-1.0.1.dist-info/RECORD,,
3
- izihawa_loglib-1.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
4
- izihawa_loglib/__init__.py,sha256=Ato6-AjQ7I0QmVJNB2Qbic66WGeNtexar0lxl05i3gI,999
5
- izihawa_loglib/formatters.py,sha256=fFpNdF9PjsW9sQgVDVwVfmFPnKkrbo1RTMvYxFRH114,2750
6
- izihawa_loglib/handlers.py,sha256=PLqgMnP6Mvb9btW7iRtI5PGCRocTLeiYW5QaiNOEuzk,1073