http://onjava.com/pub/a/onjava/2004/09/29/smtp-logging.html
log4j |
java.util.logging | |
---|---|---|
Manager class | org.apache.log4j.LogManager |
java.util.logging.LogManager |
Logger objects | org.apache.log4j.Logger |
java.util.logging.Logger |
Named loggers | Supported | Supported |
Logging levels |
Levels are declared in the
|
Levels are declared in the
|
Log event object | org.apache.log4j.spi.LoggingEvent |
java.util.logging.LogRecord |
Output destinations | Appender classes. These classes implement the org.apache.log4j.Appender interface. |
Handler classes. These classes extend java.util.logging.Handler . |
Output message filtering | Filter classes. These classes extend org.apache.log4j.spi.Filter . |
Filter classes. These classes must implement the java.util.logging.Filter interface. |
Output message formatting | Layout classes extend org.apache.log4j.Layout . |
Formatter classes extend java.util.logging.Formatter . |
Programmatic configuration | Supported | Supported |
Property file configuration | Supported | Supported |
XML configuration | Supported. The XML configuration file must comply with log4j.dtd. | Not supported |
Email notification | SMTPAppender class |
SMTPHandler class (third-party extension |
추후 다양한 Appender를 만들기 위해서 정확히 이해할 필요 있음..
'java core' 카테고리의 다른 글
Tomcat6.0.26과 jdk7,jdk6을 사용하지 말 것 (0) | 2010.05.13 |
---|---|
병렬 쓰레드 프로그래밍시 Thread Safety 확인하는 습관 갖기 (1) | 2010.05.07 |
Desktop JVM 보안 문제 (0) | 2010.04.17 |
문제 해결 가이드 링크 (0) | 2010.04.15 |
Tomcat 메모리릭 문제 해결 (Tomcat 7, 6.0.24 부터) (1) | 2010.03.19 |