Skip to content

log4j-jul java.util.logging.Logger#logp is not working #3774

Closed
@dddrecall

Description

@dddrecall

Description

[A clear and concise description of what the bug is.]

Configuration

Version: 2.24.3

**Operating system: mac 14

JDK: 17

Logs

[2025-06-23 10:02:04,535] [INFO] [main] [org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:168)] - Initializing ProtocolHandler ["http-nio-7713"]
[2025-06-23 10:02:05,388] [INFO] [main] [org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:168)] - Starting service [Tomcat]

Reproduction

Image
It seems that the logpg method will directly discard the input parameters: sourceClass, sourceMethod

tomcat[tomcat-embed-core-10.1.41.jar]

org.apache.juli.logging.DirectJDKLog

Tomcat seems to be able to use it org.apache.logging.log4j.jul.ApiLogger#logp(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String) method

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions