From 7dcb1f4fa40906f73bd494647ae292cce726f7ac Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 23 Dec 2024 22:44:43 +0100 Subject: [PATCH] chore: initial documentation of config.json (#627) --- README.md | 5 +++++ config.json.example | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 61fd7040..4dcab407 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # Space Ninja Server More information for the moment here: [https://discord.gg/PNNZ3asUuY](https://discord.gg/PNNZ3asUuY) + +## config.json + +- `logger.level` can be `fatal`, `error`, `warn`, `info`, `http`, `debug`, or `trace`. +- `myIrcAddresses` can be used to point to an IRC server. If not provided, defaults to `[ myAddress ]`. diff --git a/config.json.example b/config.json.example index e61c523b..d027f7cb 100644 --- a/config.json.example +++ b/config.json.example @@ -2,8 +2,7 @@ "mongodbUrl": "mongodb://127.0.0.1:27017/openWF", "logger": { "files": true, - "level": "trace", - "__valid_levels": "fatal, error, warn, info, http, debug, trace" + "level": "trace" }, "myAddress": "localhost", "httpPort": 80,