Skip to content

LogEnv

LogEnv = "local" | "development" | "ci" | "test" | "preview" | "production" | "agent"

Defined in: observability/src/core/logger.ts:59

Runtime environment a logger was constructed in: local (a laptop), development (a development instance), ci, test (a deployed pre-production instance), preview (a preview deployment), production or agent (an agent’s process). It is bound on every line as env, so one Axiom dataset can hold all of them and a query filters by it. Detection lives in @theholocron/env-utils (detectEnvironment); this union is written out here because /core has no dependencies, and a type test keeps it equal to env-utils’ Environment.