We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 802d54d commit 19b238dCopy full SHA for 19b238d
src/pkgmt/assets/template/src/package_name/log.py
@@ -92,9 +92,7 @@ def configure_file_logger(file_path: str = "app.log") -> None:
92
],
93
wrapper_class=structlog.make_filtering_bound_logger(logging.NOTSET),
94
context_class=dict,
95
- logger_factory=structlog.WriteLoggerFactory(
96
- file=Path("app").with_suffix(".log").open("wt")
97
- ),
+ logger_factory=structlog.WriteLoggerFactory(file=Path(file_path).open("wt")),
98
cache_logger_on_first_use=False,
99
)
100
0 commit comments