FediShoop/fedishoop/logging.ts

14 lines
362 B
TypeScript
Raw Normal View History

2024-10-07 14:25:10 +02:00
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"] },
],
});