Blyp Docs

Standalone Types

Import these from blyp-js/standalone when you want the standalone logger surface explicitly:

import type {
  StandaloneLogger,
  StandaloneLoggerConfig,
  ClientLoggingConfig,
  LogFileConfig,
  LogRotationConfig,
  RuntimeAdapter,
  RuntimeType,
  LogLevel,
} from "blyp-js/standalone";

Main interfaces

  • StandaloneLogger: the logger instance with info, warning, error, critical, success, debug, table, and child
  • StandaloneLoggerConfig: pretty, level, logDir, file, and clientLogging
  • RuntimeAdapter: runtime abstraction for file, path, env, and cwd
  • RuntimeType: "bun" | "node"
  • LogLevel: "error" | "critical" | "warning" | "info" | "success" | "debug" | "table"

Example

const config: StandaloneLoggerConfig = {
  level: "debug",
  file: {
    rotation: {
      maxArchives: 10,
    },
  },
};

On this page

No Headings