logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunter Sammet" <Gun...@sammet.net>
Subject Strange
Date Tue, 11 Sep 2001 05:34:46 GMT
Hello all,
had my config file through XML working fine. Added some lines of code (and
later I removed the lines related to log4j init) and now I can't make the
system to find the XML file. Here is the code I use to initialize log4j:

      // Use a PropertyConfigurator to initialize from a property file.
      String parentDir = "..";
      String sep = File.separator;
      String resource = "example.xml"; //me
                          cat.debug("String resource: " + resource);
                          System.out.println("String resource: " +
resource); //TESTLINE
          resource = parentDir + sep + resource;
    	  URL configFileResource =
if(configFileResource != null) {

When I print out configFileResource it prints:
file:/C:/Documents and

When I print out configFileResource.getFile() it prints:
/C:/Documents and Settings/Administrator/jbproject/occ/classes/example.xml

I'm sort of spinning my wheels because this doesn't makes much sense to me.
Any input is very much appreciated!!!
TIA Gunter

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message