Re: Setting custom Log location - log4j

2017-08-11 Thread Mikhail Getmanov
-- Отправлено из мобильного приложения Яндекс.Почты19:19, 11 августа 2017 г., Mikhail Getmanov :-- Отправлено из мобильного приложения Яндекс.Почты11:12, 11 августа 2017 г., vkulichenko <valentin.kuliche...@gmail.com>:This simply means that environment variable is not picked up by the process.If you run in Eclipse, probably you just need to restart it.-Val-- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106p16121.htmlSent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Setting custom Log location - log4j

2017-08-11 Thread Mikhail Getmanov
-- Отправлено из мобильного приложения Яндекс.Почты11:12, 11 августа 2017 г., vkulichenko :This simply means that environment variable is not picked up by the process.If you run in Eclipse, probably you just need to restart it.-Val-- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106p16121.htmlSent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Setting custom Log location - log4j

2017-08-10 Thread vkulichenko
This simply means that environment variable is not picked up by the process.
If you run in Eclipse, probably you just need to restart it.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106p16121.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Setting custom Log location - log4j

2017-08-10 Thread userx
Hi Val,

Can you help me out with the configuration change for log4j ? I have
provided the value of LOG_HOME in environment variables in eclipse. Here is
what I have











I am having similar problem setting persistentStorePath property, 







If I put the debug point in setPersistentStore method what I receive there
is ${LOG_HOME}/PersistentStore
rather than C:\\users which is the value of environment variable LOG_HOME.

This is quite a problem for me.







--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106p16118.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Setting custom Log location - log4j

2017-08-10 Thread vkulichenko
Path for log files is ${IGNITE_HOME}/work/log/, as specified in the log4j
file. If log4j logger is used and if configuration was not changed, then
most likely the change to IGNITE_HOME property variable you made was not
picked by the process. You can check it in the log - Ignite prints out
IGNITE_HOME value on startup.

However, if the purpose of this is to only change log files location, then
it's better to modify file appender ignite-log4j.xml.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106p16111.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Setting custom Log location - log4j

2017-08-10 Thread userx
Hi all,

I intend to use log4j for Apache Ignite logging. The steps I followed are

1) add maven dependency of 
org.apache.ignite
ignite-log4j
2.0.0

2) set the following in IgniteConfiguration file





3) When I start the server, it generates log at $IGNITE_HOME/work location.
I put in a debug point to see if Log4JLogger is getting instantiated and it
does.

4) Then I set an environment variable in eclipse say LOG_HOME and replaced
IGNITE_HOME with the same.
When I restarted the server it is still writing at IGNITE_HOME. 

How can I change the location of my Ignite logs to a custom location I have
set up in eclipse environment variables ? I intend to use the same strategy
and let WAL happen at a custom location as well.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Setting-custom-Log-location-log4j-tp16106.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.