set logger level for package (#1718)

* move logging config to trainer class init

* alternate logging config
This commit is contained in:
Jeremy Jordan
2020-05-12 00:14:35 -04:00
committed by GitHub
parent 4b30ef6480
commit 1df0d2dc97
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ Documentation
import logging as python_logging
_logger = python_logging.getLogger("lightning")
python_logging.basicConfig(level=python_logging.INFO)
_logger.addHandler(python_logging.StreamHandler())
_logger.setLevel(python_logging.INFO)
try:
# This variable is injected in the __builtins__ by the build
+1
View File
@@ -1,5 +1,6 @@
import inspect
import os
import logging as python_logging
from argparse import ArgumentParser
from typing import Union, Optional, List, Dict, Tuple, Iterable, Any