You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `append` (default: `false`): defines whether to append to output stream or to truncate file initially. Used only if `io` or `ioerr` is a file path.
60
61
* `message_mode` (default: `:squash`): choose how message is transformed before being printed out. Following modes are supported:
61
62
* `:notransformations`: message printed out as is, without any extra transformations
62
-
* `:squash`: message is squashed to a single line, i.e. all `\\n` are changed to `` and `\\r` are removed.
63
+
* `:squash`: message is squashed to a single line, i.e. all `\\n` are changed to `squash_delimiter` and `\\r` are removed.
63
64
* `:markdown`: message is treated as if it is written in markdown
65
+
* `squash_delimiter`: (default: "\\t"): defines which delimiter to use in squash mode.
64
66
* `flush` (default: `true`): whether to `flush` IO stream for each log message. Flush behaviour also affected by `flush_threshold` argument.
65
67
* `flush_threshold::Union{Integer, TimePeriod}` (default: 0): if this argument is nonzero and `flush` is `true`, then `io` is flushed only once per `flush_threshold` milliseconds. I.e. if time between two consecutive log messages is less then `flush_threshold`, then second message is not flushed and will have to wait for the next log event.
66
68
* `dtformat` (default: "yyyy-mm-dd HH:MM:SS"): if `datetime` parameter is used in `format` argument, this dateformat is applied for output timestamps.
@@ -81,7 +83,7 @@ Colour information is applied recursively without override, so `{{line} {module:
81
83
82
84
If part of the format is not a recognised keyword, then it is just used as is, for example `{foo:red}` means that output log message contain word "foo" printed in red.
0 commit comments