Commit graph

14 commits

Author SHA1 Message Date
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
Tiara Rodney
9fed1ffe6b
fix(config): correct basicConfig option assignments and control flow
Fix dateformat and style variables reading from wrong option fields
(filemode instead of datefmt/style). Restructure control flow to
match CPython logic: early return when handlers exist and force is
not set, proper mutual exclusion of stream/filename/handlers args.
Remove unreachable code block.
2026-03-13 22:41:29 +01:00
Tiara Rodney
e76d8fb77b
fix(logger): fix isEnabledFor, _log, makeRecord, and manager property
Fix isEnabledFor() to correctly cache and return level check results
instead of always caching false. Fix _log() to call handle() after
creating the LogRecord. Fix makeRecord() to use Object.keys() and
template literal. Add manager getter and fix setter to actually
assign the value.
2026-03-13 22:40:46 +01:00
Tiara Rodney
340b31bc50
fix(handler): add formatter getter, fix format() return, fix level setter
Add missing getter for formatter property. Fix format() to return
the formatted string instead of discarding it. Fix level setter
to assign to _level instead of recursing infinitely.
2026-03-13 22:40:05 +01:00
Tiara Rodney
03e3641e03
fix(manager): correct getLogger and implement hierarchy setup
Fix inverted type check in getLogger() and add missing return
statement. Implement _fixupParents() and _fixupChildren() to
establish parent-child logger relationships based on dot-separated
scope names.
2026-03-13 22:39:35 +01:00
Rodney, Tiara
f069a0f2e4
refactor(src): introduce submodules 2025-05-01 22:50:33 +02:00
Rodney, Tiara
5baeb0f441
chore: remove redundant sources
Well this started a little messy and I didn't really stick to atomicity. This
was the first script I've written, which was later transferred to the index.
It's the same code just with less structure and some funcitionality missing...
2025-04-25 18:47:49 +02:00
Rodney, Tiara
f07020875d
refactor: change module layout
as I've migrated from the idea of having a single mono-repo for all things ESM,
this repo will be solely for logging
2025-04-25 17:59:50 +02:00
Rodney, Tiara
7a70ed28c3
feat: initialize tests, docs and refactor 2025-04-25 16:17:46 +02:00
Rodney, Tiara
c297e3f4ef
feat(init): publishing 2025-04-25 16:17:37 +02:00
Rodney, Tiara
32636217ee
fix(logging): complete implementation of base
no compiler errors, for now.
2025-04-25 16:13:01 +02:00
Rodney, Tiara
3ab6ad635b
feat(logging): add handler, formatter and formatter style base 2025-04-25 16:13:00 +02:00
Rodney, Tiara
a6ed4f7919
chore: remove artifacts 2025-04-25 16:13:00 +02:00
Rodney, Tiara
d27f6c65c1
init: working state
compiler + test suite are fine. logging module started, I'd say about 50%
complete.
2025-04-25 16:12:52 +02:00