Download Latest Version v5.1.0 source code.zip (1.0 MB)
Email in envelope

Get an email when there's a new version of tslog

Home / v5.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-16 1.1 kB
v5.1.0 source code.tar.gz 2026-07-16 877.4 kB
v5.1.0 source code.zip 2026-07-16 1.0 MB
Totals: 3 Items   1.9 MB 1

Added

  • Named sub-loggers on tslog/liteLiteLogger gains name/nameSeparator options and getSubLogger()/child(). The label is partially applied with Function.prototype.bind, so a sub-logger's level methods are still the bound native console.* functions and the devtools file:line badge keeps pointing at the caller. Every % in a label is escaped so a (possibly runtime-derived) name can never act as a console format specifier and consume a logged value. Sub-loggers nest to any depth, join names with the parent's nameSeparator (default ":"), and inherit minLevel and the sink unless overridden; an unresolvable minLevel override inherits the parent's level, matching the full Logger. Known trade-off (documented): on a named lite logger the label occupies the console's format-string slot, so printf-style specifiers in messages print literally.
  • Bundle-size budget for tslog/litecheck-bundle-size now probes the lite subpath (~0.8 KB gzip measured, 1 KB budget).

https://github.com/fullstack-build/tslog/compare/v5.0.2...v5.1.0

Source: README.md, updated 2026-07-16