mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
set logger level for package (#1718)
* move logging config to trainer class init * alternate logging config
This commit is contained in:
@@ -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,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user