Integrating SLF4J and the new OSGi LogService 1.4
summary
OSGi LogService 1.4 replaces the old API with a modern logger/LoggerFactory model, adds levels including audit log level, a formatter logger alternative, and dynamic configuration via a LoggerAdmin tied to Configuration Admin. Consumption supports the legacy LogReader or the new push stream provider. Two practical integration patterns are shown: a static SLF4J-to-OSGi binder that maps SLF4J loggers into OSGi log entries, and an OSGi-to-Logback listener that forwards OSGi entries into Logback; demos run on Equinox (with buffered history) and work end-to-end.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:20Logging
- 3:50New types
- 7:04OSGi logger
- 8:02Log levels
- 8:39Logging in OSGi
- 10:46OSGi LogService
- 11:55Configuration Admin
- 15:24Log Stream Provider
- 19:35Declarative Services Integration
- 21:45OSGi Bundle
- 22:18What do I do now
- 23:16Two basic strategies
- 24:08First project
- 30:51Notes
related talks
51mMastering Logging in Java
53mSystem.out.println("USE A LOGGER")
34mOpenTelemetry for Logging
35mSpring Framework 5: Hidden Gems
01h 11mSpring Integration - Java Configuration and More
46mImplementing Observability in Java-Based Projects
51mLog4Shell Armageddon or Opportunity
01h 24mSpring Integration Java DSL
