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 colorful console output
 Post subject: logging colorful console output Post rating: 0   New post Posted: Wed 29 Jun, 2011, 22:06 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
context.getConsole.getOut().println logs "white" (normal) output messages to the strategy's console.
Is there a way to log "colorful" messages to the strategy's console? (like the red and yellow messages sometimes logged by the platform in the Messages window)


 
 Post subject: Re: logging colorful console output Post rating: 0   New post Posted: Thu 30 Jun, 2011, 08:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
context.getConsole.getErr().println will give you red messages. Yellow console message style currently is not published in the API.


 
 Post subject: Re: logging colorful console output Post rating: 0   New post Posted: Thu 30 Jun, 2011, 08:14 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
As support did mention, it's not in the API and not documented, so it might change in the future, but here's a hint how you can implement the feature in the current releases:
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=61&t=23960&hilit=message+background+color

Best, RR.


 
 Post subject: Re: logging colorful console output Post rating: 0   New post Posted: Thu 30 Jun, 2011, 08:39 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Thank you both!


 

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