# Dummy layout

  • type - dummy

This layout only outputs the first value in the log event's data.

# Example

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

const logger = new Logger("loggerName");

logger.appenders
  .set("std-log", {
      type: "console", layout: {type: "dummy"}, level: ["debug", "info", "trace"]
  });

logger.debug('Cheese is too ripe! Cheese was: ', cheeseName);
1
2
3
4
5
6
7
8
9
10

This will output:

Cheese is too ripe! Cheese was:
1