Skip to content

Commit 19b238d

Browse files
committed
fix
1 parent 802d54d commit 19b238d

File tree

1 file changed

+1
-3
lines changed
  • src/pkgmt/assets/template/src/package_name

1 file changed

+1
-3
lines changed

src/pkgmt/assets/template/src/package_name/log.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def configure_file_logger(file_path: str = "app.log") -> None:
9292
],
9393
wrapper_class=structlog.make_filtering_bound_logger(logging.NOTSET),
9494
context_class=dict,
95-
logger_factory=structlog.WriteLoggerFactory(
96-
file=Path("app").with_suffix(".log").open("wt")
97-
),
95+
logger_factory=structlog.WriteLoggerFactory(file=Path(file_path).open("wt")),
9896
cache_logger_on_first_use=False,
9997
)
10098

0 commit comments

Comments
 (0)