summaryrefslogtreecommitdiffstats
path: root/imagrc.toml
diff options
context:
space:
mode:
Diffstat (limited to 'imagrc.toml')
-rw-r--r--imagrc.toml29
1 files changed, 29 insertions, 0 deletions
diff --git a/imagrc.toml b/imagrc.toml
index 5c5598b5..955f5238 100644
--- a/imagrc.toml
+++ b/imagrc.toml
@@ -1,6 +1,35 @@
# This is a example configuration file for the imag suite.
# It is written in TOML
+[imag.logging]
+level = "debug"
+destinations = [ "-" ]
+
+# Valid variables for logging:
+# * "level"
+# * "module_path"
+# * "file"
+# * "line"
+# * "target"
+# * "message"
+#
+# Valid functions to be applied:
+# * "black"
+# * "blue"
+# * "cyan"
+# * "green"
+# * "purple"
+# * "red"
+# * "white"
+# * "yellow"
+
+[imag.logging.format]
+trace = "[imag][{{red level}}][{{module_path}}]: {{message}}"
+debug = "[imag][{{cyan level}}]: {{message}}"
+info = "[imag]: {{message}}"
+warn = "[imag][{{bold level}}]: {{yellow message}}"
+error = "[imag][{{red level}}]: {{red message}}"
+
#
# Configuration options for the user interface
#