all repos — stealth-developers @ 84dcb9423a0109db94a9ae2697775ff3e833ec4e

src/utils/logging.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
import { pino } from "pino";

const logger = pino({
	transport: {
		target: "pino-pretty",
	},
});

export const loggers = {
	events: logger.child({ name: "events" }),
	interactions: logger.child({ name: "interactions" }),
	config: logger.child({ name: "config" }),
};

export default logger;