proposal / request

proposal / request

Postby MarcoBoschi » Tue Nov 10, 2009 3: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
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: proposal / request

Postby hag » Tue Nov 10, 2009 3: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
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: proposal / request

Postby demont frank » Tue Nov 10, 2009 4: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
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: proposal / request

Postby Marcelo Via Giglio » Tue Nov 10, 2009 4: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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: proposal / request

Postby demont frank » Tue Nov 10, 2009 4: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
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: proposal / request

Postby MarcoBoschi » Wed Nov 11, 2009 7: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
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests