Forum Discussion

cbruck's avatar
11 years ago
Solved

TestExecute - Disable logging entirely

I've designed some testing tools which run continuously, checking the DB for new scripts to run.  In this environment, my log files are getting up above 2 GB.  I would like to be able to disable savin...
  • karkadil's avatar
    11 years ago
    There is no such options, however it is still possible.



    You can create handlers for all log events (it is described in Help) and in every handler write

    LogParams.Locked = true;



    This will supress posting a certain event (error, warning, message and so on).



    You can also use Project Variable to create a boolean variable which will specify whether to disable logging or not. THen your even handlers will look something like this



    if(Project.Variable.SupressLog)

    { LogParams.Locked = true; }