Skip to content

Extend thread context model #990

@adrianhanda

Description

@adrianhanda

Hi there logback team,

I’m currently using your logging library into my projects and I’m more than happy to have it as it fits just fine with my needs, so thank you all so much for building such tool.
Now I’ve noticed that the parent pom of it used java 11 and I’m not sure how compatible is the library for having/upgrading to higher versions.
This issue that I want to open is for an extension of the ThreadLocal with ScopedValues from java 25, and I think this would be a nice idea to be implemented into this proiect, of course if it’s possible to upgrade the proiect itself to jdk 25 only.
The main purpose is to have a configuration of the MDC to choose the thread context type (e.g: ThreadLocal or ScopedValue (since it fits well with virtual threads)), and have it choose as per needs.
I would appreciate a response/feedback from you as it’s not an urgent thing to be done, also not sure if it’s going to be possible after checking the jdk version or the project, but just let me know in the upcoming days. This can be closed asap of course if the idea might not work.

Regards,
Adrian Handa

Metadata

Metadata

Assignees

No one assigned

    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