How to disable PackagingDataCalculator

View: New views
1 Messages — Rating Filter:   Alert me  

How to disable PackagingDataCalculator

by Christian Wurbs-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hello all,

My Application uses Groovy to dynamically create classes at runtime.

During execution an exception is thrown but somehow the GroovyClassLoader creates an AssertionError when logback tries to calculate the PackagingData information afterwards.

I was able do deactivae the PackagingData printout using the %%ex option in the Pattern definition. But this seems only to hide the printout, it still tries to calculate.



During execution anCaused by: java.lang.AssertionError: true
    at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:719)
    at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:759)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at ch.qos.logback.classic.spi.PackagingDataCalculator.loadClass(PackagingDataCalculator.java:198)
    at ch.qos.logback.classic.spi.PackagingDataCalculator.bestEffortLoadClass(PackagingDataCalculator.java:220)
    at ch.qos.logback.classic.spi.PackagingDataCalculator.computeBySTEP(PackagingDataCalculator.java:132)
    at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:95)
    at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:58)
    at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:100)
    at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126)
    at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:471)
    at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:427)
    at ch.qos.logback.classic.Logger.log(Logger.java:846)


Having a look at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:126)

122    if (throwable != null) {
123        this.throwableProxy = new ThrowableProxy(throwable);
124        LoggerContext lc = logger.getLoggerContext();
125        if (lc.isPackagingDataEnabled()) {
126            this.throwableProxy.calculatePackagingData();
127        }
128    }




Is the any possibility in the configuration file to set lc.isPackagingDataEnabled() to false?

Kind regards
Christian

  

SMS schreiben mit WEB.DE FreeMail - einfach, schnell und   
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

_______________________________________________
Logback-user mailing list
Logback-user@...
http://mailman.qos.ch/mailman/listinfo/logback-user