Bugs item #1765327, was opened at 2007-08-01 16:28 Message generated for change (Comment added) made by dan_pascu You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1765327&group_id=139143
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: modules Group: ver 1.2.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: IƱaki Baz (ibc_sf) Assigned to: Nobody/Anonymous (nobody) Summary: XLOG: color ANSI code not usable for colorize system log Initial Comment: In background mode I'm trying to colorize openser logs. I use XLOG with the syntax $(Cxx) and so and works nice in foregorund mode: xlog("L_INFO", "$(Csc)$rm $ru$(Cxx)\n"); But ni background mode it generates logs like: ^[[0;30;46mINVITE sip:[EMAIL PROTECTED] I wonder why it doesn't generate correct ANSI code: \033[0;30;46m <-- correct ANSI code instead of: ^[[0;30;46m If it would generate \033[0;30;46m (correct ANSI code) then I could colorize the log file using multitail and other colorize solutions that understand ANSI code. ---------------------------------------------------------------------- >Comment By: Dan (dan_pascu) Date: 2007-08-01 17:39 Message: Logged In: YES user_id=1296758 Originator: NO \033 and ^[ are the same code that corresponds to ESC (0x1b). It should work with either one, they're just different notations of the same thing. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1765327&group_id=139143 _______________________________________________ Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel