Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-426

Logback fails to load Groovy config when run under @Grab

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.28
    • None
    • None

    Description

      "ch.qos.logback.classic.gaffer.GafferConfigurator:48" creates a GroovyShell() without specifying the classloader. When I have a Groovy application using Logback with Groovy config and it is retrieved with Groovy @Grab, where CL hierarchy is somewhat different from a usual invocation, the execution fails, error log is attached together with Groovy config.

      Here is the Groovy script using GCommons library that uses Logback: http://goo.gl/wuU05
      Here is the patch that is now part of GCommons to make Logback load the config: http://goo.gl/pvSzz

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            evgenyg Evgeny Goldin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: