# Message Pass-Through layout

type - messagePassThrough

This layout just formats the log event data, and does not output a timestamp, level or category. It is typically used in appenders that serialise the events using a specific format.

# Example

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

const logger = new Logger("loggerName");

logger.appenders.set("std-log", {
  type: "console",
  layout: {type: "messagePassThrough"},
  level: ["debug", "info", "trace"]
});
logger.debug("Log something");
1
2
3
4
5
6
7
8
9
10

This will output:

Log something
1

Last Updated: 8/23/2022, 6:24:43 PM

Other topics