InkerBot created LOG4J2-3202:
--------------------------------

             Summary: Only allow lookups in message, not in parameters.
                 Key: LOG4J2-3202
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3202
             Project: Log4j 2
          Issue Type: Improvement
            Reporter: InkerBot


For example, If someone named "${java:os}", he registered an account, I want to 
log it.

 
{code:java}
import org.apache.logging.log4j.LogManager

fun main() {
  val logger = LogManager.getLogger("ww")
  val username = "\${java:os}"
  logger.error("username: {}",username)
} {code}
 

I want "username: ${java:os}", but got "username: Mac OS X 10.16, architecture: 
x86_64-64"

If it is possible, could I have a flag to only lookup in message?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to