Changeset 33 in tmcsimulator for trunk/src/tmcsim/paramicslog
- Timestamp:
- 04/29/2016 12:55:04 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/tmcsim/paramicslog/ParamicsLog.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/paramicslog/ParamicsLog.java
r2 r33 62 62 } 63 63 } 64 65 private static final String CONFIG_FILE_NAME = "paramics_communicator_logging.properties"; 64 66 65 67 /** Error logger. */ … … 87 89 * Creates the singleton instance of this class. 88 90 */ 89 static 90 { 91 try 92 { 93 if (System.getProperty("PARAMICS_LOG_PROPERTIES") != null) 94 { 95 instance = new ParamicsLog(System.getProperty("PARAMICS_LOG_PROPERTIES")); 96 } 97 else 98 { 99 throw new Exception("PARAMICS_LOG_PROPERTIES system property not defined."); 100 } 91 static { 92 try { 93 if(System.getProperty("CONFIG_DIR") == null){ 94 System.setProperty("CONFIG_DIR", "config"); 95 } 96 97 instance = new ParamicsLog(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + CONFIG_FILE_NAME); 101 98 } 102 99 catch (Exception e)
Note: See TracChangeset
for help on using the changeset viewer.
