Thx guys for this fantastic script, I'm testing the new version and I find a bug in
set location(GLLOG) "path"
I noticed that you changed this var in the script with IOLOG but not in the declaration, I simply changed it on the declaration and it worked fine.
Nice work and sorry for my english