Содержание
- 2. Jakarta Commons Logging (JCL) Same problem domain Well-established library So why do we re-invent the wheel?
- 3. SLF4J SLF4J: Simple Logging Façade for Java Problem definition: Abstract logging frameworks Automatically/dynamically select underlying logging
- 5. The API 1: import org.slf4j.Logger; 2: import org.slf4j.LoggerFactory; 3: 4: public class Wombat { 5: 6:
- 6. Parameterized logging old style: if(logger.isDebugEnabled()) { logger.debug("Hello "+name); } new style: logger.debug("Hello {}", name);
- 7. Other supported features MDC (for log4j, logback and j.u.l) Markers
- 8. Bridging legacy systems
- 9. Using SLF4J:
- 10. Migrator
- 12. Скачать презентацию