replace log setup with a variable in Settings
Issue #376
resolved
replace the filename with a variable in Settings.java
System.setProperty("logback.configurationFile", "allconfig/testlog.xml");
note : wait for #323
Comments (3)
-
reporter -
this is a bit tricky. the following works, but only if its in the launcher file.
static{ System.setProperty("logback.configurationFile", "config/allconfig/logback.xml"); }
Alternative is this: http://stackoverflow.com/questions/9060545/creating-logback-logger-programmatically
-
- changed status to resolved
in Test:
String wdir = System.getProperty("user.dir"); File f = new File(wdir + Settings.TEST_LOGXML);
Otherwise the standard logback.xml will be found in the resources folder which is packaged in the jar.
Future improvement could be user-defined logging beyond the verbose flag.
- Log in to comment
Also differentiate different logging files