We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ca85a commit 0c581feCopy full SHA for 0c581fe
pytorch_lightning/__init__.py
@@ -3,6 +3,7 @@
3
import logging as python_logging
4
import os
5
import time
6
+import sys
7
8
_this_year = time.strftime("%Y")
9
__version__ = '1.1.4'
@@ -37,10 +38,11 @@
37
38
- https://pytorch-lightning.readthedocs.io/en/latest
39
- https://pytorch-lightning.readthedocs.io/en/stable
40
"""
-
41
-_logger = python_logging.getLogger(__name__)
42
-_logger.addHandler(python_logging.StreamHandler())
43
-_logger.setLevel(python_logging.INFO)
+python_logging.basicConfig(
+ stream=sys.stdout,
+ format="%(message)s",
44
+ level=python_logging.INFO,
45
+)
46
47
PACKAGE_ROOT = os.path.dirname(__file__)
48
PROJECT_ROOT = os.path.dirname(PACKAGE_ROOT)
0 commit comments