You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/08/01 16:13:07 UTC

DO NOT REPLY [Bug 22055] New: - Cannot catch PropertyConfigurator's IOException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22055>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22055

Cannot catch PropertyConfigurator's IOException

           Summary: Cannot catch PropertyConfigurator's IOException
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: chet_p_d@hotmail.com


I have tried to search through all previously submitted bugs for 1.2 and FAQs 
but have not found an answer to the following, which I think maybe a bug:

public static void main(String[] args) {
Logger lg = Logger.getLogger(TestLog.class);
try{
PropertyConfigurator.configure("C:\\tmp\\LogProps.txt");
lg.debug("Done configuring logger");
}catch(Exception e) {
System.out.println("Caught Exception: "+e.getMessage());
}
System.out.println("After props");
}//end main


If LogProps.txt does not exist or if it has syntax errors within, I cannot 
catch those exceptions and take any corrective actions (viz. assuming 
defaults). 

-Chetan desai.

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