Hello!

${sys:} can use any system property which exists in the JVM.

If you put your gridName (or consistentId) into system property, you can
refer to it from both Ignite configuration (xml or otherwise) and log4j2
configuration.

Regards,
-- 
Ilya Kasnacheev


пн, 8 июн. 2020 г. в 04:55, kay <[email protected]>:

> Hello, Thank you for reply.
>
> I know that I can put the 'cache-node-01' into the filename.
>
> But I wanna use only 1 log4j2.xml.
>
> If I use  <RollingFile name="Rolling-${sys:nodeId}"
> fileName="${sys:IGNITE_HOME}/work/log/cache-node-01-${sys:nodeId}.log"
>
> like this, I should make log4j2.xml file each node.
> So I asked a question Is there any way to get gridName parameter in
> log4j2.xml like '${sys:nodeId}'
>
> ex) ${sys:gridName} or ${sys:igniteName}
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to