holz

A composable structured logging framework.

MIT License

Downloads
869
Stars
5
Committers
2

Bot releases are visible (Hide)

holz - v0.6.1 Latest Release

Published by PsychoLlama about 1 year ago

Fixed

  • Resolved a TypeScript error when using PnP where @holz/core was unresolvable.
holz - v0.6.0

Published by PsychoLlama over 1 year ago

Added

  • [@holz/core] Bound logging methods so they can be passed as first-class functions.
  • Documentation for all packages.

Changed

  • [@holz/logger] Disable all logs by default. This makes it reasonable to use Holz as a logging solution in other libraries.
holz - v0.5.0

Published by PsychoLlama over 1 year ago

Added

  • [@holz/env-filter] New options localStorageKey and environmentVariable configure where to look for patterns.
  • [@holz/ansi-terminal-backend] Auto-indent for messages spanning multiple lines.

Changed

  • Plugins are functions now. This improves bundle size and composition at the expense of broad changes.
  • Every plugin's export was replaced with a function instead of a class, so import { FooBackend } becomes import { createFooBackend }.
  • [@holz/core] Renamed logger.origin to logger.owner.

Removed

  • All classes and default entrypoints were removed. They were replaced with the plain functions described above.
  • [@holz/env-filter] Changing the pattern at runtime is no longer supported. It's better to create a new instance of the plugin.
holz - v0.4.0

Published by PsychoLlama over 1 year ago

Added

  • [@holz/json-backend] Initial release.

Changed

  • [@holz/stream-backend] Use OS-sensitive line endings.

Fixed

  • [@holz/stream-backend] Avoid bundling core, list as peer dependency.
  • [@holz/ansi-terminal-backend] Avoid bundling core, list as peer dependency.
holz - v0.3.0

Published by PsychoLlama over 1 year ago

Changed

  • [@holz/logger] Enable all server logs by default.
  • [@holz/logger] Hide logs in unit tests.
  • [@holz/console-backend] Make log styling more consistent and reduce bundle size.
  • [@holz/console-backend] Add time deltas to log messages.
holz - v0.2.0

Published by PsychoLlama over 1 year ago

Fixed

  • [@holz/env-filter] Last publish included outdated artifacts.
  • [@holz/env-filter] Avoid bundling pattern-filter dependency into dist.
  • Migrated all compilation scripts to run before publish to avoid stale publishes in the future.
  • Replaced UMD bundles with commonjs on all packages (used for require).
holz - v0.1.1

Published by PsychoLlama over 1 year ago

Fixed

  • [@holz/env-filter] Don't save pattern to localStorage by default.
holz - v0.1.0

Published by PsychoLlama over 1 year ago

Added

  • [@holz/pattern-filter] Initial release.
  • [@holz/env-filter] Initial release.
  • [@holz/stream-backend] Initial release.
  • [@holz/ansi-terminal-backend] Now logs include timestamps.

Changed

  • [@holz/core] Exposed logger.origin as a read-only property.
  • [@holz/ansi-terminal-backend] Send all logs to stderr.
  • [@holz/logger] Log filtering from DEBUG/localStorage.debug. Logging is no longer enabled by default.
  • [@holz/logger] Use the stream backend when destination is not a TTY.
  • [@holz/console-backend] Remove log level prefix and use console.info/console.debug APIs instead.
holz - v0.0.0

Published by PsychoLlama over 1 year ago

Package Rankings
Top 10.51% on Npmjs.org