[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6800] Added logging
From: |
Petur Bjorn Thorsteinsson |
Subject: |
[Fmsystem-commits] [6800] Added logging |
Date: |
Tue, 18 Jan 2011 15:22:11 +0000 |
Revision: 6800
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6800
Author: peturbjorn
Date: 2011-01-18 15:22:10 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
Added logging
Modified Paths:
--------------
thirdparty/BIM_converter/trunk/src/no/bimfm/ifc/IfcSdaiRepresentationImpl.java
Modified:
thirdparty/BIM_converter/trunk/src/no/bimfm/ifc/IfcSdaiRepresentationImpl.java
===================================================================
---
thirdparty/BIM_converter/trunk/src/no/bimfm/ifc/IfcSdaiRepresentationImpl.java
2011-01-18 14:51:00 UTC (rev 6799)
+++
thirdparty/BIM_converter/trunk/src/no/bimfm/ifc/IfcSdaiRepresentationImpl.java
2011-01-18 15:22:10 UTC (rev 6800)
@@ -5,11 +5,15 @@
import java.io.InputStream;
import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import jsdai.lang.SdaiException;
import jsdai.lang.SdaiSession;
import jsdai.lang.SdaiTransaction;
public class IfcSdaiRepresentationImpl implements IfcSdaiRepresentation{
+ private Logger logger =
LoggerFactory.getLogger("no.bimfm.ifc.IfcSdaiRepresentationImpl");
protected SdaiSession session = null;
protected SdaiTransaction transaction =null;
protected Properties properties = new java.util.Properties();
@@ -20,19 +24,24 @@
public IfcSdaiRepresentationImpl(String propertiesFileNameArg) {
InputStream inStream;
try {
+ logger.debug("Opening following properties file:{}",
Thread.currentThread().getContextClassLoader().getResource(propertiesFileNameArg).toString());
inStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileNameArg);
if(inStream == null) {
+ logger.error("Properties file not found!!");
throw new FileNotFoundException();
}
properties.load(inStream);
SdaiSession.setSessionProperties(properties);
} catch (FileNotFoundException e1) {
+ logger.error("Properties file not found!!");
e1.printStackTrace();
throw new IfcSdaiException("File not found!", e1);
} catch (IOException e) {
+ logger.error("IO Exception!!");
e.printStackTrace();
throw new IfcSdaiException("IO error!", e);
} catch (SdaiException e) {
+ logger.error("Sdai Exception!!");
e.printStackTrace();
throw new IfcSdaiException("Sdai error!", e);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6800] Added logging,
Petur Bjorn Thorsteinsson <=