PDA

View Full Version : 17gb MT4 build 406 log file



icammicas
10-07-2011 08:53, 08:53 AM
Yesterday I happened to check my hard drive stats and found that my available area had strangely declined from the usual 60-80% to less than 20%. After a little detective work I found my Experts/Logs folder has been over 17 GB, all created in one day of conducting Strategy Tester. I do not use this function except for shaking the bugs out of a new EA, and that's exactly what I had done a day or two before.

Has anybody else had a similar experience? I was not able to start the logfile in question due to its size, but deleting the file returned my driveway into normal...

I've been running MT4 (currently build 406) under Linux/Wine since about construct 226 and have not ever had this happen before.

No big whoop, just a little possible glitch to watch on in the event that you are a regular user of this Strategy Tester.

jalip
08-10-2023 18:24, 06:24 PM
Yesterday I happened to look at my hard disk stats and found that my available space had strangely declined in the normal 60-80% to less than 20%. After a little detective work I found that my Experts/Logs folder was 17 GB, all generated in a single day of running Strategy Tester. I normally do not use this function except for shaking the bugs out of a new EA, which is exactly what I'd done a day or two before.

Has anyone else had a similar experience? I was unable to open the logfile in question because of its dimensions, but deleting the file returned... have you got a lot of Printing statements in your code?
If so comment them out once you longer need them you will have to ditch your log files frequently.

sebaslayncipk69
08-10-2023 19:45, 07:45 PM
Since your running in Linux, if you want to browse the contents of this file you'll be able to use'less' in a casing (or you want want to'tail -f' while running the expert). The'less' program does not load the whole file only a screenful at a time.

nekensc
08-10-2023 21:06, 09:06 PM
Produce a script to delete MT4 / MT5 log files.

Current builds today of post are MT4 670 and MT5 965.

Note: This illuion relates to Windows 8.1 64 bit. Folder and file paths for Windows 8.1 32 bit along with other versions of windows may or will have to be changed accordingly.

Loion of the MT4 log files: C:\Users\Your user name\AppData\Roaming\MetaQuotes\Terminal\32 character alphanumeric terminal identity\logs\ C:\Users\Your user name\AppData\Roaming\MetaQuotes\Terminal\32 character alphanumeric terminal identity\tester\logs\ C:\Users\Your user name\AppData\Roaming\MetaQuotes\Terminal\32 character alphanumeric terminal identity\MQL4\Logs\ Loion of the MT5 log files:

As previously except MQL4 will be MQL5.

Identifiion

If more that one MT4 / MT5 Terminal is installed the associated Terminal can be found through gt;gt; 32 character alphanumerical terminal identity gt;gt; original.txt.
The original.txt file will contain the Broker name and whether MT4 or MT5.

Produce the deletion script:The below Script Template comprises an MT4 script block and an MT5 script block. Duplie the MT4 or - and MT5 scrip block/s from the below Script Template to some new MS Window Notepad or similar text editor that accommodates .bat expansion. If more than one MT4 or MT5 Root is installed replie the applicable code block as required. . What to change - a: you broker name b: examples of #8220;T#8221; involving cd Users and cd AppData with #8220;your user name#8221; (excluding quotation marks). C: the 32 alphanumeric. D: any applicable route gaps. Omit MT4 or MT5 block if not required. The final code has to be saved with a .bat expansion. Instance: Deletelogs.bat. Note: Notpad might have to be changed from #8220;txt#8221; to #8220;All files(*. *)#8221; for viewing and saving. See - Save as type drop down. NOTE: Thenigeriaforextradingeditor is formatting the term log as l og in the below Script Template. This distance has to be removed when copied to Notepad.

Scipt Template

@ ECHO OFF

echo MT4 your broker name
cd c:\
cd Users
cd T
cd AppData
cd Roaming
cd MetaQuotes
cd Terminal
cd 9F51A4A5C91921D00 F 5E124F12 F 716EB
cd logs
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log
cd. .
Cd tester
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log
cd. .
Cd MQL4
cd logs
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log
cd. .

Echo MT5 your broker name
cd c:\
cd Users
cd T
cd AppData
cd Roaming
cd MetaQuotes
cd Terminal
cd 62FE5B6112847 B 69D1ABE633 B 337F1DA
cd logs
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log
cd. .
Cd tester
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log
cd. .
Cd MQL5
cd logs
del *.log
del?te:~6,4% date:~3,2% date:~0,2%.log

Copy the 32 alphanumeric with no malfunction.
(if required, use Ctrl mouse wheel to enlarge images)

Step 1. Duplie speech as text.
Https://www.nigeriaforextrading.com/attachments/1528026312769494893.jpg
Step 2. Past into MS Wordpad or similar text editor.
Https://www.nigeriaforextrading.com/attachments/1528026302.jpg
Step 3: Copy only the alphanumeric and glue in the script as replacement of this Script Template alphanumeric.

Using the script fileSave the log deletion script to a folder of option (not the origin C:\) and add a short cut to the desktop; devote an appropriate icon; Shortcut keys are also inserted. Https://www.nigeriaforextrading.com/attachments/1528026303.png The script can also be auto run at start up with practically zero additional PC resources. Save a copy of the script file to - C:\Users\Your User Name\AppData\Roaming\Microsoft\Windows\StatMenu\Pr ogr\Stat-up https://www.nigeriaforextrading.com/attachments/15280263132091452310.jpg Run script and then check if all log files have been deleted. If required correct script. Note: Log files can only be deleted from terminals that are closed. Log files of open terminals will not be deleted because they are in use.

nekensc
08-10-2023 22:26, 10:26 PM
The aforementioned icon is a short cut and as such lacks the Pin to Taskbar and Pin to Start properties.

To bring these properties right click on the icon 8594; Properties #8594; Shortcut #8594; visit Target and kind explorer (including quotations) in front of C:\Users\Windows\... #8594; Click OK.

Https://www.nigeriaforextrading.com/attachments/1528026305.jpg
Right click on the icon 8594; Pin to Taskbar and Pin to Start possessions should be observable.

el
08-10-2023 23:47, 11:47 PM
Consider using file splitters. There are several around (dont remember name) which will divide the file into several variety (as in preferences ) and then it is possible to open or read.

Bigger RAMgt; lesser the splits. . .will work!

IMO, EA wrote a lot in log (Lot of printing statements / same print statement executed per tick or something, likely )
AFA my experience is concerned, I had once a 80-100 Mb file (over a long period)