@grow-codes/better-stack-logs - v0.1.1
    Preparing search index...

    Class BetterStackConfig

    Immutable configuration of BetterStackClient.

    Index
    connectTimeoutMs: number
    encoding: IngestEncoding

    Default ingest body encoding ("json" unless configured).

    headers: Readonly<Record<string, string>>
    hooks?: Hooks
    logger?: ClientLogger
    proxy?: string
    queryPassword?: Secret

    SQL connection password.

    queryUrl?: string

    SQL query base URL (normalized).

    queryUsername?: string

    SQL connection username.

    requestTimeoutMs: number
    sourceTable?: string

    Default collection for queries.

    sourceToken?: Secret

    Source token for the ingest host.

    tls: Readonly<TlsOptions>
    totalTimeoutMs: number
    url?: string

    Ingest base URL (normalized), or undefined for a query-only client.

    userAgentSuffix?: string
    ENV_PREFIX: "GROW_BETTER_STACK_LOGS_"

    Prefix of every environment variable.

    • get hasIngest(): boolean

      Whether the ingest side (url + sourceToken) is configured.

      Returns boolean

    • get hasQuery(): boolean

      Whether the SQL query side (queryUrl + queryUsername + queryPassword) is configured.

      Returns boolean

    • base64(username:password) for HTTP Basic, or undefined without query credentials.

      Returns string | undefined

    • Credential values to redact from error messages and logs.

      Returns string[]

    • Debug form with every credential redacted.

      Returns Record<string, unknown>

    • The common settings for one side's transport (url = that side's base URL). Throws ConfigError when the side is not configured.

      Parameters

      • side: "query" | "ingest"

      Returns CommonConfig