반응형

Batch application 에서 log4j 설정

WAS 설정(web.xml)과 동일한 방식

 

import org.springframework.util.Log4jConfigurer;

 

public static void main(String[] args) throws Exception {

              

        if (args.length < 1) {

               System.out.println("파라미터 오류");

               return;

        }

       

        System.setProperty("server.mode", args[0]);

        Log4jConfigurer.initLogging("classpath:${server.mode}/log4j.xml");

 

반응형
LIST

+ Recent posts