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.

Logging to file
 Post subject: Logging to file Post rating: 0   Post Posted: Fri 11 May, 2012, 16:44 

User rating: 0
Joined: Fri 04 May, 2012, 12:35
Posts: 9
Location: Japan, Tokyo
Any example available for logging into file? and change format?


 
 Post subject: Re: Logging to file Post rating: 1   Post Posted: Fri 11 May, 2012, 20:42 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi unitedsoul:

You can start by reading here

Hope that helps

Trade well and good luck

JL


 
 Post subject: Re: Logging to file Post rating: 0   Post Posted: Sat 12 May, 2012, 00:48 

User rating: 0
Joined: Fri 04 May, 2012, 12:35
Posts: 9
Location: Japan, Tokyo
I want to use org.slf4j.Logger and use properties to write into file.
Something like

private static final Logger LOGGER = LoggerFactory.getLogger(SimpleStrategy.class);
LOGGER.int("Signal:: " + signal.getData());
LOGGER.error("Exception: " + e.getMessage(), e);


 
 Post subject: Re: Logging to file Post rating: 0   Post Posted: Sat 12 May, 2012, 09:42 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi unitedsoul:

I think you can find useful information about externally save data from sfl4j using logback here.

Trade well and good luck

JL


 

Jump to:  

  © 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