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
Type: Posts; User: BobM
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
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 ?
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...
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...
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...
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
...
current code
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod14.log";
private boolean info = true;
...
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,...
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
...
but running on the Dukascopy platform or as a stand alone program ?
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...
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
Thanks Norm
Will do
Bob M
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...
current code
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod10.log";
private boolean info ...
no - can't seem to produce the log
no exceptions !
currently INFO: messages appear on the console
Bob M
Have done !
Will see what the output is, if any, on Monday [today is Saturday here in NZ]
Bob M
Hi
Following is the user class Logger
class Logger {
private IConsole console = null;
private String logFile = "C:/Users/Bob/Documents/BM_mod12.log";
...