Set log4j 1.x and log4j 2.x to be optional in osgi-context