Skip to content
Snippets Groups Projects
Commit 63fb28a6 authored by valot's avatar valot
Browse files

resource for log4j conf

git-svn-id: https://subversion.renater.fr/xtandempipeline/trunk@79 b8ef2a07-7df7-436f-90b9-41648038564b
parent a1c16f6f
No related branches found
No related tags found
No related merge requests found
......@@ -36,17 +36,17 @@ public class XtandemPipelineMain {
public static void main(String[] args) {
//Chargement en debug mode
//PropertyConfigurator.configure("conf/log4j.properties");
PropertyConfigurator.configure(XtandemPipelineMain.class.getResource("/conf/log4j.properties"));
//Chargement en release mode
if(System.getProperty("os.name").contains("Linux")){
PropertyConfigurator.configure(XtandemPipelineMain.class.getResource("/conf/log4j.linux.properties"));
logger.info("Linux logging");
System.out.print("Linux logging");
}else{
PropertyConfigurator.configure(XtandemPipelineMain.class.getResource("/conf/log4j.windows.properties"));
logger.info("Window logging");
System.out.print("Linux logging");
}
// if(System.getProperty("os.name").contains("Linux")){
// PropertyConfigurator.configure(XtandemPipelineMain.class.getResource("/conf/log4j.linux.properties"));
// logger.info("Linux logging");
// System.out.print("Linux logging");
// }else{
// PropertyConfigurator.configure(XtandemPipelineMain.class.getResource("/conf/log4j.windows.properties"));
// logger.info("Window logging");
// System.out.print("Linux logging");
// }
logger.info("Starting new main");
new Main_Windows();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment