# Standard Error Appender

This appender writes all log events to the standard error stream.

# Configuration

type - stderr layout - object (optional, defaults to coloredLayout) - see layouts

# Example

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

const logger = new Logger("loggerName");

logger.appenders.set("error-log", {
  type: "strerr",
  levels: ["debug", "trace", "info"]
});
1
2
3
4
5
6
7
8

Last Updated: 10/26/2023, 6:30:07 AM

Other topics