EDIT: ALL OF THIS IS ABANDONED, SEE NEXT COMMENT
So, that's not good enough: we should move petals-log to the kernel classloader and remove it from the system classloader where only petals-commons-log would stay (amongst other things).
This means providing our own subclass of LogManager responsible of:
- Doing what org.ow2.petals.microkernel.server.PetalsServerImpl.initializeLogging() and org.ow2.petals.launcher.PetalsLauncher.setLogingSystemConfigurationFile(Configuration) are currently doing.
- Loading the handlers from within the kernel classloader and not the system classloader as currently done by LogManager.
But also we should support adding extra handlers, such as petals-log-mongodb, with an easy procedure:
- Adding the jar to the lib or extension or whatever directory
- Configuring the logging.properties file with the handler
Commited, now we just need to add configurability through the handler's configuration.