From 506ef8a43c3985067f2b9004fcc601056e172ddd Mon Sep 17 00:00:00 2001 From: CSDUMMI Date: Mon, 7 Oct 2024 14:25:10 +0200 Subject: Create initial dev environ --- fedishoop/logging.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fedishoop/logging.ts (limited to 'fedishoop/logging.ts') diff --git a/fedishoop/logging.ts b/fedishoop/logging.ts new file mode 100644 index 0000000..547e3ff --- /dev/null +++ b/fedishoop/logging.ts @@ -0,0 +1,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"] }, + ], +}); -- cgit v1.2.3