[Sunxacml-commit] sunxacml/com/sun/xacml/ctx InputParser.java,1.3,1.4
Brought to you by:
farrukh_najmi,
sethp
From: Seth P. <se...@us...> - 2004-06-04 17:50:49
|
Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7308/com/sun/xacml/ctx Modified Files: InputParser.java Log Message: Introduced some new, basic logging Index: InputParser.java =================================================================== RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx/InputParser.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** InputParser.java 12 May 2004 21:23:44 -0000 1.3 --- InputParser.java 4 Jun 2004 17:50:40 -0000 1.4 *************** *** 42,45 **** --- 42,48 ---- import java.io.InputStream; + import java.util.logging.Level; + import java.util.logging.Logger; + import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; *************** *** 74,77 **** --- 77,84 ---- "com.sun.xacml.ContextSchema"; + // the logger we'll use for all messages + private static final Logger logger = + Logger.getLogger(InputParser.class.getName()); + // standard strings for setting validation *************** *** 165,169 **** */ public void warning(SAXParseException exception) throws SAXException { ! System.out.println("Warning on line " + exception.getLineNumber() + ": " + exception.getMessage()); } --- 172,177 ---- */ public void warning(SAXParseException exception) throws SAXException { ! if (logger.isLoggable(Level.WARNING)) ! logger.warning("Warning on line " + exception.getLineNumber() + ": " + exception.getMessage()); } *************** *** 177,181 **** */ public void error(SAXParseException exception) throws SAXException { ! System.out.println("Error on line " + exception.getLineNumber() + ": " + exception.getMessage()); --- 185,190 ---- */ public void error(SAXParseException exception) throws SAXException { ! if (logger.isLoggable(Level.WARNING)) ! logger.warning("Error on line " + exception.getLineNumber() + ": " + exception.getMessage()); *************** *** 191,195 **** */ public void fatalError(SAXParseException exception) throws SAXException { ! System.out.println("FatalError on line " + exception.getLineNumber() + ": " + exception.getMessage()); --- 200,205 ---- */ public void fatalError(SAXParseException exception) throws SAXException { ! if (logger.isLoggable(Level.WARNING)) ! logger.warning("FatalError on line " + exception.getLineNumber() + ": " + exception.getMessage()); |