FediShoop/fedishoop/logging.ts

14 lines
362 B
TypeScript

import { configure, getConsoleSink } from "@logtape/logtape";
await configure({
sinks: {
console: getConsoleSink(),
},
filters: {},
loggers: [
{ category: "fedishoop", level: "debug", sinks: ["console"] },
{ category: "fedify", level: "info", sinks: ["console"] },
{ category: "logtape", level: "warning", sinks: ["console"] },
],
});