Skip to content

Commit 5ee4a03

Browse files
committed
[feat] Propagate not consider parent's level
1 parent 44ec361 commit 5ee4a03

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import logging
2+
3+
logging.basicConfig(
4+
level=logging.WARNING,
5+
format="%(asctime)s | %(levelname)s | %(name)s:%(funcName)s:%(lineno)d - %(message)s",
6+
)
7+
8+
logger = logging.getLogger("mylib")
9+
logger.setLevel(logging.INFO)
10+
11+
logger.info("想定通り")
12+
13+
"""
14+
2024-08-29 21:42:01,945 | INFO | mylib:<module>:11 - 想定通り
15+
"""

0 commit comments

Comments
 (0)