Page 1 of 1

XPPFATAL.LOG change name

Posted: Thu Dec 13, 2018 8:55 am
by Victorio
Hi,
How can change name of this log file from application ? Is this only possible with create or change errorsys.prg ?
I have main application, and this run paralell several exe modules, which run paralell.
When some of them break, every write to same log file.
I want to every app write to own log file because it is problem to analyze errors.
exe files are in same directory as main application and exe files are created also in Xbase++.

Or I want create some error manager, which send me errors from clients application to analyze, but need know, from which user or from which IP adress this come.

thx

Re: XPPFATAL.LOG change name

Posted: Thu Dec 13, 2018 9:33 am
by Tom

Re: XPPFATAL.LOG change name

Posted: Thu Dec 13, 2018 10:15 am
by Victorio
:roll:
ok, then i must try if can run external modules from other directories but this can be problem because dlls etc...

Re: XPPFATAL.LOG change name

Posted: Thu Dec 13, 2018 12:54 pm
by rdonnay
The XPPFATAL.LOG will always be written to the folder of the .EXE.

You could try putting your .EXEs in different folders.

Re: XPPFATAL.LOG change name

Posted: Fri Dec 14, 2018 1:25 am
by Tom
The XPPFATAL.LOG will always be written to the folder of the .EXE.
As long as the EXE is able to write there. ;)

Re: XPPFATAL.LOG change name

Posted: Fri Dec 14, 2018 8:56 am
by Victorio
It is true, because it is not safe full rw access do program directory, especially on Lan.

This mean, to no possible change creating xppfatal.log with own errorsys function ? I have some old errorsys.prg from Clipper, but for xbase++ it is not applicable and also there is nothing about creating error file.

I am searching solution for this, because I have problem to analyze errors when running 12 processes paralell on 12 CPU cores, and some from this crash. User do not want wait for my analyze and then break all processes , this rewrite xppfatal and I do not see error which "start" problem.

Re: XPPFATAL.LOG change name

Posted: Fri Dec 14, 2018 9:01 am
by Tom
You can do whatever you want in your own Errorsys. You can track errors, write mails, correct problems, rename files, whatever you need.

XPPFATAL.LOG has nothing to do with the runtime error handling. It's created if the app runs into a fatal ("deadly") error and is not able to call the errorsys.

Re: XPPFATAL.LOG change name

Posted: Fri Dec 14, 2018 10:37 am
by Victorio
ok, thank you for explanation.