Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Passing java properties to strategy
 Post subject: Passing java properties to strategy Post rating: 0   New post Posted: Wed 25 May, 2011, 21:06 

User rating: 0
Joined: Thu 19 May, 2011, 16:00
Posts: 37
Location: UkraineUkraine
Hello!

We need enable logging though sl4j over standard java logging. Simplest way(from my point of view) was doing like this:
System.setProperty("java.util.logging.config.file", loggingConfig);
...
...
logger = LoggerFactory.getLogger(MyStrategy.class);


but for some reasons system not reading configuration file.

P.S.
@RequiresFullAccess set
P.S.S.
Not sure that my way will work at all:) We usually passing java.util.logging.config.file from command line.


 
 Post subject: Re: Passing java properties to strategy Post rating: 0   New post Posted: Tue 31 May, 2011, 15:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
For java logging you can check from where Java is trying to read your .properties configuration file by:
System.getProperties().getProperty("user.home");
If your .properties file is there then make sure you have the directory structure starting from user.home complies with java.util.logging.FileHandler.pattern property in the properties file.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com