You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "xuwenping (Jira)" <ji...@apache.org> on 2023/03/20 13:12:00 UTC

[jira] [Created] (LOG4J2-3655) Set the ip variable in loggerContext

xuwenping created LOG4J2-3655:
---------------------------------

             Summary: 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


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)