XPPFATAL.LOG change name

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

XPPFATAL.LOG change name

#1 Post 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

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: XPPFATAL.LOG change name

#2 Post by Tom »

Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: XPPFATAL.LOG change name

#3 Post by Victorio »

:roll:
ok, then i must try if can run external modules from other directories but this can be problem because dlls etc...

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: XPPFATAL.LOG change name

#4 Post by rdonnay »

The XPPFATAL.LOG will always be written to the folder of the .EXE.

You could try putting your .EXEs in different folders.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: XPPFATAL.LOG change name

#5 Post 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. ;)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: XPPFATAL.LOG change name

#6 Post 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.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: XPPFATAL.LOG change name

#7 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: XPPFATAL.LOG change name

#8 Post by Victorio »

ok, thank you for explanation.

Post Reply