Skip to content

Dummy layout

  • type - dummy

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

Example

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

This will output:

bash
Cheese is too ripe! Cheese was:

Released under the MIT License.