# Insight Appender

Sends log events to a Insight (opens new window) server.

npm install --save @tsed/logger-insight
1

# Configuration

  • type - insight
  • options.token - LogEntries token
  • options.region - The region of ingestion endpoint to be used. Examples: eu, us etc.

See all available options for Insight here (opens new window).

# Example

import {Logger} from "@tsed/logger";
import "@tsed/logger-insight"

const logger = new Logger("loggerName");

logger.appenders.set("stdout", {
  type: "insight",
  level: ["info"],
  options: {
    token: "the token",
    region: "us"
    // other options of logentries
  }
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Last Updated: 6/11/2021, 6:38:27 AM

Other topics