Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6183

Allow applications to use custom classes in the logback.xml

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 4.0.0, 3.6.1, 3.5.2
    • Component/s: Log
    • Labels:
    • Release Notes:
      Added the property {{program.container.dist.jars}} to set extra jars to be localized to every program container and to be added to classpaths of CDAP programs.
    • Rank:
      1|hzzebb:

      Description

      If a developer wants to use a different logging configuration, he can provide the logback.xml used in all the app containers. But if that references a custom class, then that class must be available to Logback, that is, visible to the system class loader in each container. Bundling the custom class in the app jar does not help, because that only makes it available to the program class loader.

      We need a way to include extra jar files that are available to the system class loader.

        Attachments

          Activity

            People

            • Assignee:
              mao Chengfeng Mao
              Reporter:
              andreas Andreas Neumann
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: