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

JaninoEventEvaluatorBase should enable configuring of classloader in ScriptEvaluator

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: logback-core
    • Labels:

      Description

      JaninoEventEvaluatorBase currently does not specify the classloader while creating the ScriptEvaluator instance. Due to this it uses the Thread's Context Classloader (TCCL). This causes problem in using Janino based event evaluator in OSGi env as there TCCL may not have the visibility to Logback classes.

      At min we should expose option to specify the JaninoEventEvaluatorBase classloader as the classloader to use.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              logback-dev Logback dev list
              Reporter:
              chetanm Chetan Mehrotra
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: