Utility functions for message formatting, execution timing, and error handling
Category System
LogTape uses a hierarchical category system for organizing loggers. This module
automatically generates category arrays from import.meta.url, distinguishing
between internal project code and external dependencies:
Internal modules (project code):
Prefixed with "." (for instance, [".", "utils", "helper"])
External modules (from node_modules/):
Non-scoped packages: Prefixed with "@" (for instance, ["@", "lodash", "map"])
Logging framework providing a simplified facade over LogTape.
Offers streamlined logger management for TypeScript/JavaScript applications with:
import.meta.urlCategory System
LogTape uses a hierarchical category system for organizing loggers. This module automatically generates category arrays from
import.meta.url, distinguishing between internal project code and external dependencies:Internal modules (project code):
"."(for instance,[".", "utils", "helper"])External modules (from
node_modules/):"@"(for instance,["@", "lodash", "map"])["@scope", "pkg", "module"])Usage
For advanced use cases, the log function accepts full LogTape configuration objects with custom sinks, filters, and logger hierarchies.
See