FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour proposal / request
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
proposal / request
Posted: Tue Nov 10, 2009 03:15 PM

Dear friends,
In my opinion it would be very useful to change the file name error that actually is a constant "error.log"

At the moment I declare

PUBLIC cErrorFile := "myerror.log"

modify errsysw.prg

// Generates a file with an Error Log

BEGIN SEQUENCE
oOldError = ErrorBlock( { || DoBreak() } )
// MemoWrit( "error.log", cErrorLog )
MemoWrit( M->cErrorFile, cErrorLog )
END SEQUENCE
ErrorBlock( oOldError )

In a multi user scenario I obtain an error file for every user instead of an unique error.log that contains the latest error.

Best regards
marco

Marco Boschi
info@marcoboschi.it
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: proposal / request
Posted: Tue Nov 10, 2009 03:58 PM

Call it "myerror.txt" then you can see it from a cell phone. My cell doesn't know what to do with "log".

Thank you

Harvey
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: proposal / request
Posted: Tue Nov 10, 2009 04:03 PM

Xharbour has :

SET ERRORLOG TO <cLogFile> [ADDITIVE]

FWH seems to create his own error.log , but why it doesn't follow this set command ?

Frank

Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: proposal / request
Posted: Tue Nov 10, 2009 04:22 PM

Hola,

And in the multiuser enviroment what happend when there are more than one error per user?, my suggestion is to modify errorsys.prg to keep all the errors in a database table or other file with extra information, IP station etc... then you can develop a viewer module to admin this file.

I admin the errors in this way, idea only

regards

Marcelo

Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: proposal / request
Posted: Tue Nov 10, 2009 04:29 PM

I have changed errorsys.prg as :

cErFile := "ERRORS\Er" + DTOS(DATE()) + "." + CharOnly("0123456789",Time()) + ".log"

I create also one line which indicates the user

Frank

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: proposal / request
Posted: Wed Nov 11, 2009 07:54 AM

It would be very helpful,
considering that there is a feature that lets you send this file by mail to support.
Have a nice day
marco

Marco Boschi
info@marcoboschi.it

Continue the discussion