hvisage / metalog

metalog is a syslog replacement that allows regular expresion matching
GNU General Public License v2.0
36 stars 11 forks source link

Trailing newline #27

Closed m-kress closed 1 year ago

m-kress commented 1 year ago

Some programs (e.g. strongswan, fetchmail) or standard libs (musl) append a '\n' to every log line. Metalog substituted every control character (0x7F and 0x0 to 0x1f) with an ''. This commit does the same exept for control characters trailing a line. This gets rid of the trailing '' in all logs.

This should not cost too much performance, because control characters in log lines are not very common.

This should deal with issue 20 (https://github.com/hvisage/metalog/issues/20).

auouymous commented 1 year ago

could you please test this with fetchmail?

The trailing underscores are gone.