summaryrefslogtreecommitdiff
path: root/fedishoop/logging.ts
blob: 547e3ffd70dadd7276ae6abc54ffe614ab055664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"] },
  ],
});