Looks like you can use a ${port}/${host} variable in place of hardcoded ports
for server names.



JohnRodey wrote:
> 
> Is it possible to specify a remote host and port using a property?  
> 
> For instance I currently have:
> 
> <appender name="SocketAppender"
> class="org.apache.log4j.net.SocketAppender">
>     
>     
>     ...
> </appender>
> 
> I would like to do something like:
> 
> <appender name="SocketAppender"
> class="org.apache.log4j.net.SocketAppender">
>     
>     
>     ...
> </appender>
> 
> I would like to do this to eliminate users needing to edit multiple files
> to adjust port/host settings.
> 

-- 
View this message in context: 
http://old.nabble.com/Specifying-SocketAppender-port-and-host-in-XML-tp29391668p29392578.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to