Alter default configuration
Explain how the module logging destinations work, remove the specified logging destination, because the global log definition already logs to stderr. libimagstore logs with trace now, also to a logfile in /tmp/
This commit is contained in:
parent
a24baca779
commit
7d933725d6
1 changed files with 35 additions and 25 deletions
60
imagrc.toml
60
imagrc.toml
|
@ -44,123 +44,133 @@ info = "[imag]: {{message}}"
|
||||||
warn = "[imag][{{bold level}}]: {{yellow message}}"
|
warn = "[imag][{{bold level}}]: {{yellow message}}"
|
||||||
error = "[imag][{{red level}}]: {{red message}}"
|
error = "[imag][{{red level}}]: {{red message}}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# The logging configurations for the modules of imag follow.
|
||||||
|
#
|
||||||
|
# Note that the `destinations` key is for _additional_ destinations to the
|
||||||
|
# default destination in `imag.logging.destinations`, not as replacement! So
|
||||||
|
# specifying stderr (`-`) in `imag.logging.destinations` _and_ in, for example,
|
||||||
|
# `imag.logging.modules.libimagstore` yields each log line twice, which might
|
||||||
|
# not be wanted behaviour.
|
||||||
|
#
|
||||||
|
|
||||||
[imag.logging.modules.libimagutil]
|
[imag.logging.modules.libimagutil]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagtimeui]
|
[imag.logging.modules.libimagtimeui]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimaginteraction]
|
[imag.logging.modules.libimaginteraction]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagstore]
|
[imag.logging.modules.libimagstore]
|
||||||
destinations = [ "-" ]
|
destinations = [ "/tmp/libimagstore.log" ]
|
||||||
level = "debug"
|
level = "trace"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagrt]
|
[imag.logging.modules.libimagrt]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagerror]
|
[imag.logging.modules.libimagerror]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagbookmark]
|
[imag.logging.modules.libimagbookmark]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagnotes]
|
[imag.logging.modules.libimagnotes]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagdiary]
|
[imag.logging.modules.libimagdiary]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagtimetrack]
|
[imag.logging.modules.libimagtimetrack]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagtodo]
|
[imag.logging.modules.libimagtodo]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagmail]
|
[imag.logging.modules.libimagmail]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentryfilter]
|
[imag.logging.modules.libimagentryfilter]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrycategory]
|
[imag.logging.modules.libimagentrycategory]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentryannotation]
|
[imag.logging.modules.libimagentryannotation]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrylink]
|
[imag.logging.modules.libimagentrylink]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrytag]
|
[imag.logging.modules.libimagentrytag]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrygps]
|
[imag.logging.modules.libimagentrygps]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrylist]
|
[imag.logging.modules.libimagentrylist]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentryedit]
|
[imag.logging.modules.libimagentryedit]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentryref]
|
[imag.logging.modules.libimagentryref]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentryview]
|
[imag.logging.modules.libimagentryview]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrymarkdown]
|
[imag.logging.modules.libimagentrymarkdown]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[imag.logging.modules.libimagentrydatetime]
|
[imag.logging.modules.libimagentrydatetime]
|
||||||
destinations = [ "-" ]
|
destinations = []
|
||||||
level = "debug"
|
level = "debug"
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue