NEXUS-5118: Rationalizing logging in bundle #530

merged 7 commits into from Sep 14, 2012
Commits on Sep 4, 2012
  1. NEXUS-5118: Initial imple

    cstamas committed Aug 2, 2012
    Goal is to make "bundle packaging" (which is basically Jetty + Nexus WAR)
    use same LogBack instance (as we had problems reported by users in 2.0).
    * jetty.xml - umarked "server level" logback as hidden to make it really shared
    * extracted custom appender into new module nexus-logging-extras-appender that is put top level
    * nexus-logging-extras got component implementation for EventTarget
    * logback-events.xml changed to use new appender
    * bundle assembly changed that exclude all logging relevant JARs from Nexus WAR as they are _provided_ on top level from now on
    This is WIP, not yet functional.
  2. NEXUS-5118: Adding exclusion for top level invluded JAR

    cstamas committed Aug 2, 2012
    Did not stir much water, but Tattletale chokes on this.
  3. NEXUS-5118: Fixing the initial imple

    cstamas committed Sep 4, 2012
    The initial implementation was conceived okay, but
    there was a problem with Injection happening as the class
    loaded up had annotations thrown away by classloader.
    Reason for that is that in bundle layout the appender
    is on Jetty classloader level (parent of Nexus webapp)
    and that CL does not have @Inject. Hence, the fix was to
    introduce "special" case for injection when ForwaringAppender
    was met, simply doing manual injection on it.