Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LErrorLog property
Message
 
À
28/08/2002 14:11:24
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00694576
Message ID:
00694614
Vues:
11
Hi Nerissa,

>I noticed that the errorlog.fpt of my application is getting bigger everyday. I checked my lErrorLog property and it is set to .F. Is there any other property that Mere Mortals is checking that I should set to .F. to stop my application from writing the error to errorlog.fpt?

I've had a look at the error manager, there seems nothing to be provided to to turn error logging off, but you can do the following:

Add a property lLogErrors to your application class.

Subclass CErrorMgr (CManager.vcx) and put the following code in the subclass:
*   Library: CManager.vcx
*   Class:   CErrorMgr
*   Method:  CreateErrorLogEntry()

IF TYPE("goApp.lLogErrors") == "L" AND goApp.lLogErrors
  DODEFAULT()
ENDIF

RETURN
Then change the ErrorManager entry in classes.dbf to point to your error mananger class.

BTW: In which class did you find the lErrorLog property?

HTH,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform