Commit Graph

2 Commits

Author SHA1 Message Date
84e1744d6f fix: never crash on a bad level= string (v0.1.1)
_level_value used logging.getLevelName(name), which returns the string 'Level XXX'
for an unknown name; that string then reached setLevel() and raised ValueError,
violating the 'never crashes the app over logging' contract. validate the result is
an int and fall back to INFO otherwise.

verified: level='BOGUS' -> INFO (no crash); 'DEBUG' and int levels still honored.
Signed-off-by: disqualifier <dev@disqualifier.me>
2026-06-27 21:49:20 -04:00
c6efee59c1 add package: pyproject + src (setup_logging, rotation namer/rotator, formats)
Signed-off-by: disqualifier <dev@disqualifier.me>
2026-06-27 20:21:02 -04:00