Unix log colors and log decoration change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny, Nanang and all!

I am working on my thesis which should be SIP traffic analyzer and I
chose to use PJSIP for it as it has looked like my cup of tea from
beginning... :) Thank you for working on it!

As I am quite focused on logs in analysis I missed color in linux so I
implemented some. I also missed the feature to set/unset colors in
runtime so I implemented that as well. Second update in log decoration
is additional 2 spaces between core log message and its headers so it
can be found more easily. All of these are included in attached patch.

You can redefine the colors used in config_site.h. My patch supports
standard 16 console colors. I couldn't test this on anything else than
linux with bash and I am not very familiar with other unices so I
don't know if it will work there. Anyway if you set #define
PJ_TERM_HAS_COLOR 0 in config_site.h it will be perfectly safe.

Best,
Ondrej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pj-log-and-color.diff
Type: application/octet-stream
Size: 5844 bytes
Desc: not available
Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080614/1e3de667/attachment.obj 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux