Skip to content

Commit 40b7efe

Browse files
committed
add logging config to libraries
1 parent d404311 commit 40b7efe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import logging
2+
3+
from .polygenicscore import PolygenicScore
4+
5+
log_fmt = "%(name)s: %(asctime)s %(levelname)-8s %(message)s"
6+
logging.basicConfig(format=log_fmt, datefmt="%Y-%m-%d %H:%M:%S")
7+
logger = logging.getLogger(__name__)
8+
9+
__all__ = ["PolygenicScore"]

pgscatalog.matchlib/src/pgscatalog/matchlib/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import logging
2+
13
from .variantframe import VariantFrame
24
from .scoringfileframe import ScoringFileFrame, match_variants
35
from .matchresult import MatchResult, MatchResults
46
from .plinkscorefiles import PlinkScoreFiles
57

8+
log_fmt = "%(name)s: %(asctime)s %(levelname)-8s %(message)s"
9+
logging.basicConfig(format=log_fmt, datefmt="%Y-%m-%d %H:%M:%S")
10+
logger = logging.getLogger(__name__)
11+
612
__all__ = [
713
"VariantFrame",
814
"ScoringFileFrame",

0 commit comments

Comments
 (0)