Commit graph

3 commits

Author SHA1 Message Date
Tiara Rodney
7b9e88ef59
feat(formatter): implement %-style formatting, formatTime, formatError
PercentFormatterStyle._format() now performs %(key)s/d/f substitution
against LogRecord attributes. Formatter.format() sets record.message
via getMessage() and conditionally calls formatTime() for asctime.
formatTime() uses JS Date with strftime-style tokens (%Y,%m,%d,%H,
%M,%S) or ISO8601 fallback. formatError() returns Error.stack.
BASIC_FORMAT updated to use %(levelname)s. Fixed datefmt type in
config.ts.
2026-03-13 23:14:49 +01:00
Tiara Rodney
0b87f5516a
fix(formatter,manager): add Formatter.format(), fix Placeholder access
Add format() method to Formatter class to delegate to the style's
format method. Change Placeholder.loggers to public so Manager can
access it for hierarchy fixup.
2026-03-13 22:42:52 +01:00
Rodney, Tiara
f069a0f2e4
refactor(src): introduce submodules 2025-05-01 22:50:33 +02:00