Skip to content

Insight Appender

Sends log events to a Insight server.

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

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.

Example

typescript
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
  }
});

Released under the MIT License.