# SeqAppender Class

Module
import { SeqAppender } from "@tsed/seq"
Source/packages/seq/src/appenders/SeqAppender.ts

# Overview

class SeqAppender extends BaseAppender {
    build(): void;
    write(loggingEvent: LogEvent): void;
}

# Description

# Seq Output Appender

This appender writes all log events to the seq logger stream

# Configuration

  • type - seq
  • layout - object (optional, defaults to colouredLayout) - see layouts
  • url - string - the url to the seq server

# Example

import {Logger} from "ts-log-debug";

const logger = new Logger("loggerName");

logger.appenders.set("seq", {
    type: "seq",
    levels: ["info", "trace", "debug"],
    url: "http://localhost:5341"
});
1
2
3
4
5
6
7
8
9

# Members

build(): void

write(loggingEvent: LogEvent): void