You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ekraynov <ev...@epam.com> on 2018/08/21 14:02:52 UTC
Re: REST service command LOG
Log command of the REST API provides access just for logs of the node where
the service raised.
Logs can be retrieved from IGNITE_HOME/ or from the path defined in the log
configuration of the node.
Log configuration should be defined expliciltly when Ignite-log4j module is
enabled.
XML:
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="gridLogger">
<bean class="org.apache.ignite.logger.log4j.Log4JLogger">
<constructor-arg type="java.lang.String" value="log4j.xml"/>
</bean>
</property>
...
</bean>
Java:
IgniteConfiguration cfg = new IgniteConfiguration();
IgniteLogger log = new Log4JLogger("log4j.xml");
cfg.setGridLogger(log);
In this way, Log command will provide by default (without Path parameter)
logs from the file specified
in log4j.xml
I think, the current behavior is correct
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/