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 org.apache.log4j.Level class. log4j has five pre-defined levels:

  1. FATAL
  2. ERROR
  3. WARN
  4. INFO
  5. DEBUG

Levels are declared in the java.util.logging.Level class. There are seven pre-defined levels:

  1. SEVERE
  2. WARNING
  3. INFO
  4. CONFIG
  5. FINE
  6. FINER
  7. FINEST
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를 만들기 위해서 정확히 이해할 필요 있음..
Posted by '김용환'

댓글을 달아 주세요