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-js/elysia";
import type { HonoLoggerConfig, HonoLoggerVariables } from "blyp-js/hono";
import type { ExpressLoggerConfig, ExpressLoggerMiddleware } from "blyp-js/express";
import type { FastifyLoggerConfig, FastifyLoggerPlugin } from "blyp-js/fastify";
import type { NestLoggerConfig, NestAdapterType } from "blyp-js/nestjs";
import type { NextJsLoggerFactory, NextJsLoggerConfig } from "blyp-js/nextjs";
import type { TanStackStartLoggerFactory } from "blyp-js/tanstack-start";
import type { SvelteKitLoggerFactory } from "blyp-js/sveltekit";
import type { WorkersLoggerConfig, WorkersRequestLogger } from "blyp-js/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