feat: historic logs named off the project namespace (cwd basename / history_name)
the live file keeps its defined name (latest.log); rolled/historic files are now named off the PROJECT namespace so you can tell which service a log came from at a glance. default = os.path.basename(os.getcwd()) (run from bestbuy/ -> historic bestbuy.<stamp>.log[.gz]); override with the new history_name= param. - decouple the rolled stem (history) from the live stem (name) in setup.py; thread history_stem into BOTH the namers AND prune/retier (same stem, or retention breaks). - unify size + daily on make_history_namer -> <stem>.<stamp>.log[.gz] (was stdlib .N / .log.<date>); rotate_on_start takes history_stem. behavior-visible: rolled names differ from pre-0.5.0 (were the live stem). pass history_name=name for the old naming. execute-verified across on_start/daily/size (tiered + non-tiered), default-cwd + explicit + history==name + normalization edges; v0.4.x fixes (rotation/tiering/retention) all still hold. bump v0.4.3 -> v0.5.0 Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "log_setup"
|
||||
version = "0.4.3"
|
||||
version = "0.5.0"
|
||||
description = "stdlib app-entry-point logging setup: live run.log, rotation, gzip, retention, consistent format"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = []
|
||||
|
||||
Reference in New Issue
Block a user