[ https://issues.apache.org/jira/browse/LOG4J2-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volkan Yazici resolved LOG4J2-3655. ----------------------------------- Resolution: Information Provided > Set the ip variable in loggerContext > ------------------------------------ > > Key: LOG4J2-3655 > URL: https://issues.apache.org/jira/browse/LOG4J2-3655 > Project: Log4j 2 > Issue Type: Question > Reporter: xuwenping > Priority: Major > > Hello, is it possible to get the server ip when the project is initialized, > and put the ip into the LoggerContext as a variable, thank you. > In this case, the downstream can directly use the value of ${ip} in the > configuration file, similar to ${hostname}. > I hope I can submit a pull request if I want, thanks! -- This message was sent by Atlassian Jira (v8.20.10#820010)