Add imag logging configuration
This commit is contained in:
parent
482377abb9
commit
df51736c87
1 changed files with 29 additions and 0 deletions
29
imagrc.toml
29
imagrc.toml
|
@ -1,6 +1,35 @@
|
||||||
# This is a example configuration file for the imag suite.
|
# This is a example configuration file for the imag suite.
|
||||||
# It is written in TOML
|
# 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
|
# Configuration options for the user interface
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue