[asterisk-users] colorized logfiles in asterisk 1.6.0.6
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Mon Mar 9 11:10:43 CDT 2009
On Friday 06 March 2009 09:39:30 am Johann Steinwendtner wrote:
> 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'
You're correct, but only for VERBOSE lines. The other log levels do not
contain color codes. This is more of a consequence of verbose messages
getting colorized prior to output than anything else, and as pointed out
before, this is not unique to 1.6.0. Given that the VERBOSE level is so,
well, verbose, most people do not enable that log level in production, but
turn it on only for debugging purposes.
--
Tilghman
More information about the asterisk-users
mailing list