Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LErrorLog property
Message
 
To
28/08/2002 14:11:24
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00694576
Message ID:
00694614
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform