MQL5's Finding Errors and Logging says: "all messages are written without notifications into the "Experts" tab and into the "Terminal_dir\MQL5\Logs\data.txt" file".
Everything's ok in MQL5. However, when using the Print function in my new MQL4 fresh copy, I don't get any log file...
Any tip is welcome, thank you in advance.
My own experience is that the log file in MQL4\logs is not necessarily written immediately. It seems that you can have output visible on screen which is not yet committed to disk. For example, I've just done the following test: start MT4 v604; run a script which does Print(); nothing in MQL4\logs; shut down MT4; log is written on shutdown.
I haven't investigated what the delay or write-threshold is between doing Print() and having something appear on disk. But it no longer seems to be immediate - which I can't say that I like. If MT4 terminates abnormally - e.g. terminated using Task Manager - then it seems that some Print() output can get lost.
I haven't investigated what the delay or write-threshold is between doing Print() and having something appear on disk. But it no longer seems to be immediate - which I can't say that I like.
Sorry for opening this thread..
I was not looking well. I have many MQL instances.
On the one hand, I can access my log file by browsing my file system and going to Roaming/MetaQuotes/Terminal/mql_instance/tester/logs/
On the other hand, as you say now, I can also access the log file by right-clicking MQL4's Navigator Log folder.
Everything's ok, thks
Yes, it seems to be a delay or something.. I don't know.
Anyway, you can access the log file almost instantaneously and directly from the filesystem -> Roaming/MetaQuotes/Terminal/mql_instance/tester/logs/