Interfaces

@system-inc/base-foundation · 515c140 · 1 symbols

Logging settings for a Base Worker (BaseSettings.logging). These are the in-code defaults; the LOG_LEVEL environment variable overrides level and categories at deploy time (e.g. LOG_LEVEL=warn,rpc=debug).

Members

  • categories?: Record<string, LogLevel>

    Per-category thresholds overriding level, keyed by the category name passed to Logger.create (e.g. { rpc: LogLevel.Debug }). The framework's own categories include base, http, rpc, gql, orm, queue, scheduled, ws, event, kv, durable, common.

  • level?: LogLevel

    The default log threshold. Defaults to LogLevel.Info.

  • requestLog?: boolean

    Whether to emit the per-request log line (GET /notes 200 OK (12ms)). Defaults to true. This is a request log, not an application log — it is the single most expensive log line on the hot path, so it has its own switch: turn it off for maximum throughput while keeping info elsewhere.

View source ↗