import { ICommonTargetOptions, ILogEntry, LogTarget } from "@spinajs/log-common"; /** * Emits NDJSON ( newline-delimited JSON ) to stdout for machine ingestion: * one structured JSON object per log entry instead of a formatted string, so * log collectors ( Loki, Elastic, Datadog, container stdout ) can index fields * directly rather than regex-parsing a layout. * * The inherited `layout` option is intentionally IGNORED - JSON is not a string * layout. `time` is stamped at write; because this target is synchronous / * unbuffered that is ~event time. An event-time-stamped, file-backed variant * will come with the batching base in a later phase. */ /** * Options for {@link JsonTarget}. */ export interface IJsonTargetOptions extends ICommonTargetOptions { /** * Which stream to write to. A single stream is the 12-factor norm for machine * logs. Default is "stdout". */ stream?: "stdout" | "stderr"; } export declare class JsonTarget extends LogTarget { constructor(options: IJsonTargetOptions); write(data: ILogEntry): void; } //# sourceMappingURL=JsonTarget.d.ts.map