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 withinfo,warning,error,critical,success,debug,table,childClientLoggerConfig:endpoint,headers,credentials,localConsole,remoteSync,metadataClientLogEvent: normalized payload sent to the backend ingestion endpointClientLogBrowserContext: user agent, language, and platform infoClientLogDeviceContext: mobile/device metadata, including Expo network details when availableClientLogPageContext: current URL, pathname, search, hash, title, and referrerParseErrorOptions:logger,logLevel, andfallbackStatusExpoLogger/ExpoLoggerConfig: mobile logger surface for Expo apps using absolute remote delivery
Example
const config: ClientLoggerConfig = {
endpoint: "/inngest",
localConsole: true,
remoteSync: true,
metadata: {
app: "dashboard",
},
};