noteshare.space/server/logger.ts
2022-07-06 14:59:38 +02:00

12 lines
293 B
TypeScript

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({});