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

GEventEvaluator not working in logback 1.3.0-alpha4 (due to groovy issue)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.3.0-alpha1, 1.3.0-alpha3, 1.3.0-alpha4
    • logback-classic
    • None
    • any

    Description

      If you have a workaround, please let me know.  If you look at this file, you can see that I simply redirect WARN/ERROR to stderr and INFO and less to stdout.  I do this for IDE's as then they log stderr as red and INFO and lower as black so it is VERY nice on the eyes when errors happen...easy to spot one line errors.

      logback config file: https://github.com/deanhiller/webpieces/blob/logbackBugs/webserver/webpiecesServerBuilder/templateProject/WEBPIECESxAPPNAME-dev/src/main/resources/logback.xml 

       

      Due to a groovy issue(I need to create or find one and link here), GEventEvaluator is not supported.  To reproduce, you can follow these steps

      You will see this exception

      09:21:00,636 |-ERROR in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Could not create component [evaluator] of type [ch.qos.logback.classic.boolex.GEventEvaluator] java.lang.ClassNotFoundException: ch.qos.logback.classic.boolex.GEventEvaluator

      at java.lang.ClassNotFoundException: ch.qos.logback.classic.boolex.GEventEvaluator

      at at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)

      at at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

      at at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

      at at ch.qos.logback.core.util.Loader.loadClass(Loader.java:120)

      at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.begin(NestedComplexPropertyIA.java:102)

      at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)

      at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)

      at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)

      at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)

      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)

      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)

      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)

      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)

      at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:82)

      at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:157)

      at at ch.qos.logback.classic.spi.LogbackServiceProvider.initializeLoggerContext(LogbackServiceProvider.java:49)

      at at ch.qos.logback.classic.spi.LogbackServiceProvider.initialize(LogbackServiceProvider.java:40)

      at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:151)

      at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:139)

      at at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:417)

      at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:403)

      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:352)

      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:378)

      at at WEBPIECESxPACKAGE.DevelopmentServer.<clinit>(DevelopmentServer.java:8)

      Attachments

        Activity

          People

            logback-dev Logback dev list
            deanhiller Dean Hiller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: