all repos — stealth-developers @ e4b9cba626f834bc1a910858cf61e9c79ed81a97

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;