diff options
author | CSDUMMI <csdummi.misquality@simplelogin.co> | 2024-10-07 14:25:10 +0200 |
---|---|---|
committer | CSDUMMI <csdummi.misquality@simplelogin.co> | 2024-10-07 14:26:21 +0200 |
commit | 506ef8a43c3985067f2b9004fcc601056e172ddd (patch) | |
tree | 722fe4b80cfae576be62edba6a3f4b7c01d0be5b /fedishoop/logging.ts | |
parent | ebfdee4de375e47e96eb776b4a4e754de8a25ae1 (diff) |
Create initial dev environ
Diffstat (limited to 'fedishoop/logging.ts')
-rw-r--r-- | fedishoop/logging.ts | 13 |
1 files changed, 13 insertions, 0 deletions
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"] }, + ], +}); |