Skip to content

Use of System ClassLoader didn't find custom logging enhancer #2123

Description

@dclements

When using the logback appender I tried adding my own LoggingEnhancer, but it failed to load with a ClassNotFound exception (which was swallowed).

Investigation revealed that the problem was that the logback appender was loading it using the system classloader. Switching this to the thread context classloader (with ch.qos.logback.core.util.Loader#loadClass) worked fine.

Label: logging-logback

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions