Hi Odi,
Maybe we should also change the wirelog logger to something like
'org.apache.commons.httpclient.wire'.
The JLogFactory uses different methods to obtain loggers for a
class and by name. Prefixing the name with a package is OK by me,
but I'd prefer to leave some distinction in the
additional info:
1. this is a standalone java program,
2. the script to launch the java process as follows:
-
#!/bin/sh
CDS_HOME=/opt/cvm
CDS_RUNTIME=$CDS_HOME/deployment/cvm
echo CDS_HOME =$CDS_HOME
echo CDS_RUNTIME=$CDS_RUNTIME
#classpath for CDS_RUNTIME
darren jiang wrote:
additional info:
1. this is a standalone java program,
2. the script to launch the java process as follows:
-
#!/bin/sh
CDS_HOME=/opt/cvm
CDS_RUNTIME=$CDS_HOME/deployment/cvm
echo CDS_HOME =$CDS_HOME
echo CDS_RUNTIME=$CDS_RUNTIME
#classpath for CDS_RUNTIME
Hello Ortwin,
thank you for your help to indentify the reason for this.
I did a configuration in my program to use the passed in
logging.properties file.
I put my code here.
-
public static void main(String[] args) {
Hello Ortwin and all,
I fixed this problem and found that maybe a bug in HttpClient.java
I fixed the logging problem using the following:
#set error for commons package:
log4j.category.org.apache.commons.httpclient=ERROR
this can only disable the logging for all package except HttpClient.class.