Allow changing lava_dispatcher ShellLogger replacement table
Currently replacement table looks like this:
replacements = {
"\n\n": "\n", # double lines to single
"\r": "",
'"': '\\"', # escape double quotes for YAML syntax
"\x1b": "", # remove escape control characters
}
However, this table cannot fit every case. For example, there are some programs that use /r
for new lines.
I propose adding a new command line option --shell-logger-add-replacement
which can modify the replacement table. For example, --shell-logger-add-replacement=\r=\n
will add a replacement for carriage return to be replaced with new line.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information