This pull request adds a new boolean client option prettyNewlines (true by default) and a new Logger option + mutators which, when true, makes the logger pad newlines so that they align with the timestamp label. This is just a cosmetic change to make logging multi-line strings neater.
As an example, what before was:
2021-10-23 15:31:25 | [INFO] | Hi!
This is a
multiline string!
now becomes:
2021-10-23 15:31:25 | [INFO] | Hi!
| This is a
| multiline string!
This pull request adds a new
boolean
client optionprettyNewlines
(true
by default) and a newLogger
option + mutators which, whentrue
, makes the logger pad newlines so that they align with the timestamp label. This is just a cosmetic change to make logging multi-line strings neater.As an example, what before was:
now becomes: