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
typescript
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");
This will output:
bash
Log something