summaryrefslogtreecommitdiffstats
path: root/imagrc.toml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-08-27 14:34:10 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-09-03 13:48:05 +0200
commitdf51736c8718f1974ad31724858e6bb870fe5a2e (patch)
treed2a297b5a9135b3749d2338a8b3554adcb780428 /imagrc.toml
parent482377abb9a9d4a5cbfc10110330c19be2aa1354 (diff)
Add imag logging configuration
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..cd7ef72a 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][{{cyan level}}]: {{yellow message}}"
+error = "[imag][{{red level}}]: {{red message}}"
+
#
# Configuration options for the user interface
#