[asterisk-bugs] [Asterisk 0016786]: [patch] Remove coloring escape sequences from log files.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 11 04:43:09 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16786 
====================================================================== 
Reported By:                dodo
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16786
Category:                   Core/General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.22 
JIRA:                       SWP-877 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-08 03:41 CST
Last Modified:              2010-02-11 04:43 CST
====================================================================== 
Summary:                    [patch] Remove coloring escape sequences from log
files.
Description: 
Log files are much more readable without escape sequences.
====================================================================== 

---------------------------------------------------------------------- 
 (0117980) dodo (reporter) - 2010-02-11 04:43
 https://issues.asterisk.org/view.php?id=16786#c117980 
---------------------------------------------------------------------- 
Hello,
struct logmsg is defined in logger.c, and it is not ast_str so it is not
possible to use ast_str_strlen function etc.
Is it possible to write it like this?

res = fprintf(chan->fileptr, "[%s] %s[%ld] %s: %s",
     logmsg->date, levels[logmsg->level], logmsg->process_id,
logmsg->file,
      term_strip(logmsg->str, logmsg->str, strlen(logmsg->str) + 1)); 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-11 04:43 dodo           Note Added: 0117980                          
======================================================================




More information about the asterisk-bugs mailing list