Restructure logging #21
@@ -33,7 +33,7 @@ def add_logging_level(level_name: str, level_num: int, method_name: str | None =
|
|||||||
setattr(logging, method_name, log_to_root)
|
setattr(logging, method_name, log_to_root)
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(path: str = "logging_config.yaml") -> None:
|
def setup_logging(path: str = ".logging_config.yaml") -> None:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user