Blyp Docs

Browser Types

Import these from blyp-js/client:

import type {
  ClientLogger,
  ClientLoggerConfig,
  ClientLogEvent,
  ClientLogLevel,
  ClientLogBrowserContext,
  ClientLogPageContext,
  ParseErrorOptions,
  BlypErrorLike,
  BlypErrorCode,
} from "blyp-js/client";

Expo-specific mobile types live under blyp-js/expo:

import type {
  ExpoLogger,
  ExpoLoggerConfig,
  ClientLogDeviceContext,
} from "blyp-js/expo";

Main interfaces

  • ClientLogger: browser logger with info, warning, error, critical, success, debug, table, child
  • ClientLoggerConfig: endpoint, headers, credentials, localConsole, remoteSync, metadata
  • ClientLogEvent: normalized payload sent to the backend ingestion endpoint
  • ClientLogBrowserContext: user agent, language, and platform info
  • ClientLogDeviceContext: mobile/device metadata, including Expo network details when available
  • ClientLogPageContext: current URL, pathname, search, hash, title, and referrer
  • ParseErrorOptions: logger, logLevel, and fallbackStatus
  • ExpoLogger / ExpoLoggerConfig: mobile logger surface for Expo apps using absolute remote delivery

Example

const config: ClientLoggerConfig = {
  endpoint: "/inngest",
  localConsole: true,
  remoteSync: true,
  metadata: {
    app: "dashboard",
  },
};

On this page

No Headings