Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@apache.org Received: (qmail 6315 invoked from network); 15 May 2003 07:47:21 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 May 2003 07:47:21 -0000 Received: (qmail 18734 invoked by uid 97); 15 May 2003 07:49:37 -0000 Delivered-To: qmlist-jakarta-archive-log4j-dev@nagoya.betaversion.org Received: (qmail 18727 invoked from network); 15 May 2003 07:49:37 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 May 2003 07:49:37 -0000 Received: (qmail 4665 invoked by uid 500); 15 May 2003 07:47:00 -0000 Mailing-List: contact log4j-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@jakarta.apache.org Received: (qmail 4567 invoked from network); 15 May 2003 07:46:58 -0000 Received: from dns2.accelance.net (HELO mercure.accelance.net) (213.162.48.1) by daedalus.apache.org with SMTP; 15 May 2003 07:46:58 -0000 Received: from eai.openwide.lyon (atomic.openwide.fr [213.162.49.49]) by mercure.accelance.net (8.11.2/8.9.3) with ESMTP id h4F7l9805474; Thu, 15 May 2003 09:47:09 +0200 Subject: RE: Colored console output From: Thomas NGUYEN Reply-To: thomas.nguyen@openwide.fr To: Log4J Developers List In-Reply-To: References: Content-Type: text/plain; charset=UTF-8 Organization: Open Wide Message-Id: <1052985318.27573.3.camel@eai> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 15 May 2003 09:55:18 +0200 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The colors are implemented through ANSI escape sequences, I guess your console does not support them. I tested it in KDE's Konsole on a RedHat system. It should work in any xterm. What platform are you using? Le jeu 15/05/2003 à 09:13, Ramadoss Chinnakuzhandai a écrit : > Hi Thomas, > I tested enhanced priority(?) P following is the output... > > 2003-05-15 12:30:28,053 [main] DEBUG com.onstar.vehcomm.logging.TestLogger ←[36mDEBUG←[0m ModemLog1- debug message > 2003-05-15 12:30:28,063 [main] DEBUG com.onstar.vehcomm.logging.TestLogger ←[36mDEBUG←[0m ModemLog2- debug message > 2003-05-15 12:30:28,073 [main] DEBUG com.onstar.vehcomm.logging.TestLogger ←[36mDEBUG←[0m ModemLog3- debug message > > What ←[36mDEBUG←[0m represents...and what is the significance of using is..?? And also just wondering about colored console as I have not seen anything colored in the console...??? > > > > -----Original Message----- > From: Thomas NGUYEN [mailto:thomas.nguyen@openwide.fr] > Sent: Wednesday, May 14, 2003 8:01 PM > To: Log4J Developers List > Subject: Colored console output > > > > I modified src/java/org/apache/log4j/helpers/PatternParser.java to add a little feature: the priority name appears colored in the console. > > I added a new conversion character named 'P' ('p' prints the priority, so 'P' printing an enhanced priority seemed to make sense) > > I made this because console logs are rather hard to read. I fill that some color is welcome. > > I haven't tested it extensively, but it looks like it works well. > > Any feedback welcome. > > -- Thomas NGUYEN > > > PS: If you don't find it usefull, at least have been having some fun playing with log4j. ;^) > > > **************************Disclaimer************************************ > > Information contained in this E-MAIL being proprietary to Wipro Limited is > 'privileged' and 'confidential' and intended for use only by the individual > or entity to which it is addressed. You are notified that any use, copying > or dissemination of the information contained in the E-MAIL in any manner > whatsoever is strictly prohibited. > > *************************************************************************** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: log4j-dev-help@jakarta.apache.org -- Thomas NGUYEN --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org