[asterisk-users] Remove ANSI colour trings from log files only

Joel Serrano joel at textplus.com
Thu Jul 23 23:16:45 CDT 2020


Well I skipped reading the part where you say “only for log files” :-(

On Thu, Jul 23, 2020 at 21:06 Joel Serrano <joel at textplus.com> wrote:

> Have you tried starting asterisk with the "-n" param?
>
>    -n              Disable console colorization
>
> On Thu, Jul 23, 2020 at 5:11 PM Andrew Yager <andrew at rwts.com.au> wrote:
>
>> 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
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200723/78b89934/attachment.html>


More information about the asterisk-users mailing list