Remove ANSI Colour Trings From Log Files Only

Home » Asterisk Users » Remove ANSI Colour Trings From Log Files Only
Asterisk Users 4 Comments

Hi,

Is there a way to drop the ANSI colour strings from log files? In particular, I’ve got JSON logging throwing logs over to ES, but they have the ANSI colour escape sequences.

Ideally I don’t want to lose coloured logs from the console though, and I
can’t “see” a way to do this.

Ast 16 at the moment…

Andrew

4 thoughts on - Remove ANSI Colour Trings From Log Files Only