Search:

Type: Posts; User: BobM

Search: Search took 0.13 seconds.

  1. Replies
    35
    Views
    1,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    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,347

    Re: can't seem to find the log

    Thanks Norm

    Will do

    Bob M
  14. Replies
    35
    Views
    1,347

    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,347

    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,347

    Re: can't seem to find the log

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

    Re: can't seem to find the log

    no exceptions !

    currently INFO: messages appear on the console

    Bob M
  18. Replies
    35
    Views
    1,347

    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,347

    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";
    ...
Results 1 to 19 of 19