Server-Side Types
Each server adapter exports its own config and factory types from its subpath.
Commonly used imports
import type { ElysiaLoggerConfig, ElysiaContext } from "@blyp/core/elysia";
import type { HonoLoggerConfig, HonoLoggerVariables } from "@blyp/core/hono";
import type { ExpressLoggerConfig, ExpressLoggerMiddleware } from "@blyp/core/express";
import type { FastifyLoggerConfig, FastifyLoggerPlugin } from "@blyp/core/fastify";
import type { NestLoggerConfig, NestAdapterType } from "@blyp/core/nestjs";
import type { NextJsLoggerFactory, NextJsLoggerConfig } from "@blyp/core/nextjs";
import type { TanStackStartLoggerFactory } from "@blyp/core/tanstack-start";
import type { SvelteKitLoggerFactory } from "@blyp/core/sveltekit";
import type { WorkersLoggerConfig, WorkersRequestLogger } from "@blyp/core/workers";HttpRequestLog
Most server adapters also export HttpRequestLog, which includes:
type: "http_request" | "http_error"methodurlstatusCoderesponseTime- client metadata such as IP, user agent, hostname, and browser/OS hints
- optional error metadata like
error,stack,code,why,fix,link, anddetails
Where typing helps most
customProps(ctx)for request-scoped metadataautoLogging.ignore(ctx)when you want context-aware suppressionclientLogging.validate(ctx, payload)andclientLogging.enrich(ctx, payload)- wrapped handler helpers such as
NextJsLoggerFactory,TanStackStartLoggerFactory, andSvelteKitLoggerFactory
Request-scoped structured logs
Structured log types are shared root exports because the same createStructuredLog() helper works in standalone code and inside framework handlers:
import {
createStructuredLog,
type StructuredLog,
type StructuredLogEmitOptions,
type StructuredLogPayload,
} from "@blyp/core";Inside a framework request, the emitted StructuredLogPayload<TFields> can also include request metadata such as method, path, status, and duration, plus anything returned by the adapter's customProps(ctx).