Search:

Type: Posts; User: BobM

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    yes - you have solved my problem

    I am sorry it has been a long drawn out process

    Many, many thanks

    Bob M
    Dunedin, New Zealand
  2. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    yes - logfile is written to :)

    bw.close(), fos.close() and osw.close()

    you suggest I delete 2 of the above
    do I leave all 3 flushes ?
  3. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    in the onStart method in the strategy


    logger = new BM_mod14.Logger(console, "", true, true, false);


    output current:-
    c:\Users\rgmat\Desktop>java logger.java
    This is a test 2...
  4. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    How does your code call the Logger class's constructor? What statements have: new Logger() in them?

    Logger l = new Logger(new IConsole(), "BobsLog.txt", false, false, false

    How does your code...
  5. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    error: can't find main(String[]) method in class: IConsole

    --- Update ---

    [QUOTE=Norm;171051]Also these questions about how the Logger program is used in the Dukascopy environment:

    Why do...
  6. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    errors..........
    c:\Users\rgmat\Desktop>javac logger.java
    location: class Logger.IConsole
    logger.java:113: error: non-static variable this cannot be referenced from a static context
    ...
  7. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    current code


    class Logger {

    private IConsole console = null;
    private String logFile = "C:/Users/Bob/Documents/BM_mod14.log";
    private boolean info = true;
    ...
  8. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    output 2 errors
    c:\Users\rgmat\Desktop>javac logger.java
    logger.java:5: error: illegal start of expression
    private IConsole console = null;
    ^
    logger.java:91: error: class,...
  9. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    but running on the Dukascopy platform or as a stand alone program ?

    --- Update ---

    output

    c:\Users\rgmat\Desktop>javac logger.java
    logger.java:5: error: illegal start of expression
    ...
  10. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    but running on the Dukascopy platform or as a stand alone program ?
  11. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    I am confused as usual................

    Are we running this on the Dukascopy platform
    It seems we are with IConsole
    but we need other Dukascopy components as well

    or are we running a stand...
  12. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    Am I correct in thinking that the 3 flushes and closes are the reason that the log file is gone by the time I go to look for it ?

    Bob M
  13. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    Thanks Norm

    Will do

    Bob M
  14. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    Hi Norm

    "Where is a main method for testing the code?"
    Unsure what you mean - I am simply running the whole code

    "What is printed on the console when the code is executed?"

    The various INFO...
  15. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    current code


    class Logger {

    private IConsole console = null;
    private String logFile = "C:/Users/Bob/Documents/BM_mod10.log";
    private boolean info ...
  16. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    no - can't seem to produce the log
  17. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    no exceptions !

    currently INFO: messages appear on the console

    Bob M
  18. Replies
    35
    Views
    1,315

    Re: can't seem to find the log

    Have done !

    Will see what the output is, if any, on Monday [today is Saturday here in NZ]

    Bob M
  19. Replies
    35
    Views
    1,315

    can't seem to find the log

    Hi
    Following is the user class Logger


    class Logger {

    private IConsole console = null;
    private String logFile = "C:/Users/Bob/Documents/BM_mod12.log";
    ...
  20. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    You were correct Norm,
    Of all the many variables, only 3 have different values depending on the currency pair traded
    One a boolean and the other two integer values
    Now hard coded...........
    All...
  21. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    Norm

    Thank you for expending so much energy in trying to unravel my brain

    I need to go away and convince myself that removing the whole property concept and hard-coding the values results in...
  22. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    re your second point:-

    That is exactly what I have coded in the meantime
    I have commented out all the put, get, containsKey code

    and have a whole lot of variable = value lines

    It is just...
  23. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    That's where I am at a loss

    All I understand is that I need to create a properties class which has 3 methods
    putProperty(), getProperty() and containsKeyProperty()
    The first should be identical...
  24. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    [QUOTE=Norm;170906]Where is the variable: properties given a value? In other words: Where is it to the left of an =?


    public class BM_mod10 implements IStrategy {
    //
    private ...
  25. Replies
    34
    Views
    2,842

    Re: how to code a work around for a missing class

    no



    /**
    * The subscription to instruments must be provided in onStart method. By
    * default, Remote Server is not subscribing the strategy to any
    * instruments.
    *
    ...
Results 1 to 25 of 37
Page 1 of 2 1 2