Skip to content

Repository files navigation

@tummycrypt/tinyland-logging

Structured logging with Loki integration, OpenTelemetry trace correlation, admin audit logging, file-based admin activity logging, accessibility (WCAG) Loki logging and a DI-based tRPC logging middleware.

Entry points

Import Contents
@tummycrypt/tinyland-logging structured and Loki loggers, admin file/flat audit loggers, configuration
@tummycrypt/tinyland-logging/a11y buffered accessibility logger (a11yLogger) and its configuration; formerly @tummycrypt/tinyland-a11y-logger
@tummycrypt/tinyland-logging/activity file-based admin activity logger (AdminActivityLogger, logAdminAction) with query and rotation, and its configuration; formerly @tummycrypt/tinyland-activity-logger
@tummycrypt/tinyland-logging/admin-audit SvelteKit admin action audit logging (logAdminAction, logUserManagement, ...) with GDPR IP hashing and device detection; formerly @tummycrypt/tinyland-admin-audit
@tummycrypt/tinyland-logging/middleware tRPC-compatible loggingMiddleware and component loggers (createLogger, createScopedLogger) over an injected Logger (configure, no-op until configured); formerly @tummycrypt/tinyland-logging-middleware

Consuming (Bazel only)

This package is not published to npm. Consume it from xoxd-ai/bazel-registry:

bazel_dep(name = "tummycrypt_tinyland_logging", version = "1.3.0")
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")

npm_link_package(
    name = "node_modules/@tummycrypt/tinyland-logging",
    src = "@tummycrypt_tinyland_logging//:pkg",
)

Development

pnpm install
pnpm typecheck
pnpm test

CI (.github/workflows/ci.yml) runs these checks and builds //:pkg and //:test. That is the qualifying run. A local Bazel run is local, non-qualifying. .bazelrc sets startup --max_idle_secs=120, so its server exits after 120 s idle:

bazel build //:pkg && bazel test //...

TypeScript 7.0.2 and vitest 5.0.3 are pinned exactly. See CHANGELOG.md.

Releases

Packages

Used by

Contributors

Languages