Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Log file - overwrite and/or append #471731
03/16/18 23:14
03/16/18 23:14
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi all. For some time I've noticed that in some (all?) cases when I restart Zorro the log file is treated strangely. It seems that the startup messages replace the beginning of the existing log file, and then the on-going trading messages are appended to the end of the log file. So, I end up with a restarted log file that has

1) The new startup messages
2) Then a bunch of old messages
3) Then the new trading messages

Has anyone else noticed this behavior?

Thanks.

Re: Log file - overwrite and/or append [Re: DdlV] #471742
03/18/18 10:42
03/18/18 10:42
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Not actually. But it could be important to know the version(s) affected. Only in trade ('new trading messages') or also in test mode?

Re: Log file - overwrite and/or append [Re: Sphin] #471749
03/18/18 17:13
03/18/18 17:13
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi Sphin. Yes, sorry - I left out a few details... frown

This is in Trade. I don't recall which version I first noticed it, but it happened again in the current 1.74.

It appears that at Trade startup Zorro opens the (existing) log file, overwrites the initial startup messages at the beginning of the file, and then closes the file without truncating it to its new size. Subsequent Trade messages are appended to the file.

If that's what's going on, there seem to be 2 ways to fix Zorro:

1) Always open the log file for append (but this grows the log file indefinitely); or

2) Be sure to truncate the file when overwriting an existing log file (but this loses the old log data)

As a side note, I've also wondered why in Trade startup Zorro doesn't rename an existing log file so it isn't overwritten...

Thanks.

Re: Log file - overwrite and/or append [Re: DdlV] #471758
03/19/18 10:56
03/19/18 10:56
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
I have just tested it with the latest version, but cannot confirm the problem. There is no command for "truncating" a file. Zorro deletes the old file at start and appends the messages to a new one.

Can you post the log with the strange content?

Re: Log file - overwrite and/or append [Re: jcl] #471776
03/19/18 16:33
03/19/18 16:33
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Not without redacting it - there's personal & personally identifying info in it!

I can edit that out and/or send it to support - which would you prefer? Unedited it's a ~225KB file.

Re: Log file - overwrite and/or append [Re: DdlV] #471903
03/24/18 17:31
03/24/18 17:31
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi jcl. Did you decide which of these options you'd prefer to see the log file?

Thanks.

Re: Log file - overwrite and/or append [Re: DdlV] #471921
03/26/18 14:03
03/26/18 14:03
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
To support. But if it happens only with your script, we would then also need that script for reproducing the problem.

Re: Log file - overwrite and/or append [Re: jcl] #471926
03/26/18 16:47
03/26/18 16:47
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Example log file (from Z12) sent.

Thanks.

Re: Log file - overwrite and/or append [Re: DdlV] #472087
04/05/18 18:10
04/05/18 18:10
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
For the benefit of anyone following this thread, Support is unable to reproduce. But it continues to happen. It may also involve some interaction with -diag that I also use... Will post again when/if there is a solution.

Re: Log file - overwrite and/or append [Re: DdlV] #472091
04/06/18 07:12
04/06/18 07:12
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
thx


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1