From 03e50ca399b44a26fefafe325ea40fa453b7d6ea Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 10 Jul 2025 00:20:08 +0100 Subject: Configurable logging Would be good to maybe log more things, and maybe play around with log levels. But this is okay for now. stderrlog probably will go at some point, too many unnecessary transient dependencies --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6f7e3b9..a5ba2aa 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ port = 1883 # MQTT server port qos = "exactly-once" # Default subscription QoS # at-least-once (=0), at-most-once (=1), exactly-once (=2) timeout = 10.5 # Timeout in seconds (0 means (effectively) no timeout) +[log] +level = "info" # The log level + # ("off", "error", "warn", "info", # "debug", "trace") +timestamps = false # Whether to prepend millisecond timestamps to log entries # [credentials] # Uncomment to specify MQTT connection credentials # username = "username" # password = "password" @@ -84,7 +88,6 @@ it being ran every time a new MQTT message is published to this topic. ## Missing Features -* Configurable logging * Ability to configure programs with non-UTF-8 in paths * Maybe config reloading on SIGHUP * TLS -- cgit v1.2.3-70-g09d2