noteshare.space/server/logger.ts

12 lines
293 B
TypeScript
Raw Normal View History

2022-07-06 15:59:38 +03:00
import { createWriteStream } from "fs";
import pino, { multistream } from "pino";
// const streams = [
// { stream: process.stdout },
// { stream: createWriteStream("/logs/logfile.log", { flags: "a" }) },
// ];
// export default pino({}, multistream(streams));
export default pino({});