I use rsyslogd version 5.8. The characters \n and \r are dumped as #012 and #015 in the log file.
Example (by entering command: printf "example-test[\r]" | logger) :
<13> 2014-07-07T11:01:03.254 root: example-test[#015]
I would rather like to dump them in hexadecimal: #0A and #0D (or other more human-readable format).
How could I do this by modifying the rsyslogd configuration file?
$EscapeControlCharactersOnReceive
. – Fumigant