mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
playing with logging
This commit is contained in:
18
python/testing/logging/foo.py
Normal file
18
python/testing/logging/foo.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""foo"""
|
||||
|
||||
import logging
|
||||
|
||||
from python.testing.logging.bar import bar
|
||||
from python.testing.logging.configure_logger import configure_logger
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def foo() -> None:
|
||||
"""Foo."""
|
||||
|
||||
configure_logger("DEBUG", "FOO")
|
||||
logger.debug(f"foo {__name__}")
|
||||
logger.debug("foo")
|
||||
|
||||
bar()
|
||||
Reference in New Issue
Block a user