This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Creating a permanent log of messages on the JForex platform at Dukascopy

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have an automated strategy running on the JForex platform at Dukascopy

My strategy outputs quite a lot of data..............using myConsole.getOut().println(....);

When I click on my strategy name tag at the bottom of the platform screen I see only a few lines from my strategy output (being the latest output)

What do I need to do, to capture ALL output ?

Bob M

private IConsole myConsole = null;
myConsole = context.getConsole();
 
Rancher
Posts: 3410
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What do I need to do, to capture ALL output ?


For example do you mean: write the output to a file?

What package is the IConsole class in?  What methods does it have that might be useful?
 
Bob Matthews
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

yes - write the output to a file is what I am seeking.

The package:-
public class XXX implements IStrategy {
 
Norm Radder
Rancher
Posts: 3410
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was asking what package the IConsole class was in.  What import statement do you use to be able to use the IConsole class?  Were is the class file located?

If you want to write the lines written using the IConsole class's methods, you should read the API doc for that class to see if it has any useful methods for writing those lines to a file.

For example the System.out object in Java SE has methods that allow the code to intercept what is written with calls to System.out.println() so it can be written to a disk file.
 
Bob Matthews
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the following example what I should be adapting ?

 
Norm Radder
Rancher
Posts: 3410
33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I do not know anything about the classes in the com.dukascopy.api packages.  Is there a website or forum for classses in those packages?
 
Saloon Keeper
Posts: 2658
333
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Docs here: Interface IConsole
 
Sheriff
Posts: 24594
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bob Matthews wrote:When I click on my strategy name tag at the bottom of the platform screen I see only a few lines from my strategy output (being the latest output)

What do I need to do, to capture ALL output ?



So your "strategy name tag" only shows you the last few lines of the output? Sounds like it might be configured to discard old output after some point. You could look at its configuration and see if there's something there which you could do differently.
 
Bob Matthews
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul

I agree completely
I have posted a query to Dukascopy Support but their response is yet to come
I must say their support is piteful

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!