log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient). log4j:WARN Please initialize the log4j system properly. [INFO ] http://localhost:8080/HttpClientExamWeb/simple.jsp?NAME=Hana&SEX=Male&AGE=0x22¤Ë¥¢¥¯¥»¥¹¤ò¤·¤Þ¤¹ [INFO ] Àµ¾ï½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ç¤¹
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j= 'http://jakarta.apache.org/log4j/'> <!-- ********************** ɸ½à½ÐÎϤؤνÐÎÏ ********************** --> <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> <param name="threshold" value="debug"/> <!-- ¥ì¥¤¥¢¥¦¥È¤Î»ØÄê --> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%x%-5p] %m%n"/> </layout> </appender> <!-- ********************** Null¤Ø¤Î½ÐÎÏ ********************** --> <appender name="NULL" class="org.apache.log4j.varia.NullAppender"> <param name="threshold" value="debug"/> </appender> <!-- ********************** categoryÄêµÁ ************************* --> <category name="com.snail.exam"> <priority value="debug"/> <appender-ref ref="STDOUT"/> </category> <!-- ********************** rootÄêµÁ ***************************** --> <root> <level value="fatal"/> <appender-ref ref="NULL"/> </root> </log4j:configuration>
if(logger.isDebugEnabled()){ logger.debug( "Source Data:\n" + HexDumpEncoder.encode( streamData ) ); }