Add the @datalust/winston-seq winston and winston packages to your package.json, and configure winston with a SeqTransport:
import winston from 'winston';import { SeqTransport } from '@datalust/winston-seq';const logger = winston.createLogger({ level: 'info', format: winston.format.combine( /* This is required to get errors to log with stack traces. See https://github.com/winstonjs/winston/issues/1498 */ winston.format.errors({ stack: true }), winston.format.json(), ), defaultMeta: { /* application: 'your-app-name' */ }, transports: [ new winston.transports.Console({ format: winston.format.simple(), }), new SeqTransport({ serverUrl: "https://your-seq-server:5341"
serverUrl - the URL for your Seq server's ingestion