UNPKG

serilogger

Version:

A structured logging framework for JavaScript, inspired by Serilog.

35 lines (34 loc) 988 B
import { DynamicLevelSwitch } from './dynamicLevelSwitch'; import { ApiSink } from './apiSink'; export interface SeqSinkOptions { /** * API key to use */ apiKey?: string; /** * If true, events be serialized using Serilog's compact format */ compact?: boolean; /** * If true, events will be buffered in local storage if available */ durable?: boolean; /** * DynamicLevelSwitch which the Seq log level will control and use */ levelSwitch?: DynamicLevelSwitch; /** * If true, errors in the pipeline will be suppressed and logged to the console instead (defaults to true) */ suppressErrors?: boolean; /** * URL to the Seq server */ url: string; } export declare class SeqSink extends ApiSink { apiKey: string; constructor(options: SeqSinkOptions); toString(): string; protected postToLogger(url: any, body: any): Promise<Response>; }