독서하는 개발자's Blog

반응형

http://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte3:fdl:%EC%84%A4%EC%A0%95_%ED%8C%8C%EC%9D%BC%EC%9D%84_%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94_%EB%B0%A9%EB%B2%95

 

egovframework:rte3:fdl:설정_파일을_사용하는_방법 [eGovFrame]

Log4j 2는 기존 Properties 파일 형식의 환경 설정을 지원하지 않으며, XML (log4j2.xml) 혹은 JSON (log4j2.json or log4j2.jsn) 파일 형식의 환경 설정만 가능하다. 아래는 XML 파일을 이용한 환경 설정에 대해서만 다루며, JOSN 방식은 Log4j 2 매뉴얼을 참고하도록 한다. XML 파일 (log4j2.xml)을 작성하고, WEB-INF/classes 하위에 포함될 수 있도록 위치시킨다. Log4j 2

www.egovframe.go.kr

http://logging.apache.org/log4j/2.x/manual/configuration.html#Loggers

[logger 자세히 보기]

 

Log4j – Configuring Log4j 2 - Apache Log4j 2

Configuration Inserting log requests into the application code requires a fair amount of planning and effort. Observation shows that approximately 4 percent of code is dedicated to logging. Consequently, even moderately sized applications will have thousan

logging.apache.org

http://logging.apache.org/log4j/2.x/manual/appenders.html

[logger 자세한 설정]

 

Log4j – Log4j 2 Appenders - Apache Log4j 2

Appenders Appenders are responsible for delivering LogEvents to their destination. Every Appender must implement the Appender interface. Most Appenders will extend AbstractAppender which adds Lifecycle and Filterable support. Lifecycle allows components to

logging.apache.org

http://logging.apache.org/log4j/2.x/manual/layouts.html

[logger layout 설정]

 

Log4j – Log4j 2 Layouts - Apache Log4j 2

Layouts An Appender uses a Layout to format a LogEvent into a form that meets the needs of whatever will be consuming the log event. In Log4j 1.x and Logback Layouts were expected to transform an event into a String. In Log4j 2 Layouts return a byte array.

logging.apache.org

반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band