Skip to content

Commit

Permalink
configure basic logging
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jan 18, 2021
1 parent c1ca85a commit 0c581fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pytorch_lightning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging as python_logging
import os
import time
import sys

_this_year = time.strftime("%Y")
__version__ = '1.1.4'
Expand Down Expand Up @@ -37,10 +38,11 @@
- https://pytorch-lightning.readthedocs.io/en/latest
- https://pytorch-lightning.readthedocs.io/en/stable
"""

_logger = python_logging.getLogger(__name__)
_logger.addHandler(python_logging.StreamHandler())
_logger.setLevel(python_logging.INFO)
python_logging.basicConfig(
stream=sys.stdout,
format="%(message)s",
level=python_logging.INFO,
)

PACKAGE_ROOT = os.path.dirname(__file__)
PROJECT_ROOT = os.path.dirname(PACKAGE_ROOT)
Expand Down

0 comments on commit 0c581fe

Please sign in to comment.