lib.logger
Comprehensive logging library optimized for Bun with ElysiaJS integration
platformlibraryv5.0.4stablewebservernodebrowser
@lssm-tech/lib.loggerbun add @lssm-tech/lib.loggerManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Comprehensive logging library optimized for Bun with ElysiaJS integration.
What It Provides
- Layer: lib.
- Consumers: email, jobs, contracts-runtime-server-mcp, bundles, apps.
- Related ContractSpec packages include
@lssm-tech/tool.bun,@lssm-tech/tool.typescript. - Related ContractSpec packages include
@lssm-tech/tool.bun,@lssm-tech/tool.typescript.
Installation
npm install @lssm-tech/lib.logger
or
bun add @lssm-tech/lib.logger
Usage
Import the root entrypoint from @lssm-tech/lib.logger, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/context.browser.tsis part of the package's public or composition surface.src/context.node.tsis part of the package's public or composition surface.src/context.tsis part of the package's public or composition surface.src/elysia-plugin.tsis part of the package's public or composition surface.src/formatters.tsis part of the package's public or composition surface.src/index.browser.tsis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/types.tsis shared public type definitions.
Public Entry Points
- Export
.resolves throughtypes,browser,default. - Export
./contextresolves throughtypes,browser,node, ... - Export
./context.browserresolves through./src/context.browser.ts. - Export
./context.noderesolves through./src/context.node.ts. - Export
./elysia-pluginresolves through./src/elysia-plugin.ts. - Export
./formattersresolves through./src/formatters.ts. - Export
./index.browserresolves through./src/index.browser.ts. - Export
./loggerresolves throughtypes,browser,node, ... - Export
./logger.browserresolves through./src/logger.browser.ts. - Export
./logger.noderesolves through./src/logger.node.ts. - The package publishes 15 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsgo --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Logger interface is used across the entire stack — breaking changes affect everything.
- Structured log format must stay JSON-compatible for log aggregation pipelines.
- Elysia plugin must not break the middleware chain; preserve
onRequest/onAfterHandleorder.
Relationships
THIS PACKAGElib.logger16 import paths
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
3 declarations
@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.crypto-utilsworkspace:^
Read the package manual ↗zone.js^0.16.3
Declared capabilities
Lib Logger
Comprehensive logging library optimized for Bun with ElysiaJS integration
Scripts
cleanrm -rf distlintbun run lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit