[asterisk-users] colorized logfiles in asterisk 1.6.0.6

Tiago Durante tiagodurante at gmail.com
Fri Mar 6 15:59:49 CST 2009


On Fri, Mar 6, 2009 at 10:39 AM, Johann Steinwendtner
<steinwendtner at gmx.net> wrote:
> Danny Nicholas wrote:
>> The log files themselves are not in color.  It would be a style sheet change
>> on the GUI.
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Johann
>> Steinwendtner
>> Sent: Friday, March 06, 2009 2:59 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: [asterisk-users] colorized logfiles in asterisk 1.6.0.6
>>
>> Hello !
>>
>> I've upgraded our testsystem from asterisk 1.4.21 to asterisk 1.6.0.6.
>> We 've noticed that the log files are now in colour.
>> I could not find a note in the upgrade section about this.
>> Is this a feature or a bug ?
>> It might be usefull to have them not in colour.
>>
>> best regards
>>
>> Hans
>
> Sorry, that I wasn't clear enough. The logfiles contains escape codes +
> the colour codes.
> e.g.:
> [Feb 12 13:38:30] VERBOSE[19816] logger.c:   == Registered custom function 'ESC[1;36;40mSQL_ESCESC[0;37;40m'
> [Feb 12 13:38:30] VERBOSE[19816] logger.c:  func_odbc.so => (ESC[33;40mODBC lookupsESC[0;37;40m)
> [Feb 12 13:38:30] VERBOSE[19816] logger.c:   == Registered application 'ESC[1;36;40mReadFileESC[0;37;40m'
>
> I do not use a GUI.

same thing happens to me, as far as I noticed only in one server...
asterisk 1.6.0.5...

when you do a, lets say, tail -f /var/log/asterisk/full its kinda of
cool, because you can check the log with colors... but the log itself
become a mess...

regards,

-- 
Tiago Durante

,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,
Perseverance is the hard work you do after you
get tired of doing the hard work you already did.
-- Newt Gingrich



More information about the asterisk-users mailing list