Difference between revisions of "MIST changeSetting"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.debug.changeSetting| |vNum = Mist 4.5 |desc= Changes the value of mist's default settings. Useful for enabling a higher level of debug logg...")
 
(No difference)

Latest revision as of 08:38, 23 August 2021


mist.debug.changeSetting

Added with: Mist 4.5
Description
Changes the value of mist's default settings. Useful for enabling a higher level of debug logging built into mist.
Syntax
nothing mist.debug.changeSetting(table vars )
Valid Input Values:

vars tables have the following recognized fields( required entries in blue, optional in green):

 vars = 
 {
 
 log = string/number log, 
 dbLog = string/number dbLog, 
 errorPopup = boolean errorPopup, 
 warnPopup = boolean warnPopup, 
 infoPopup = boolean infoPopup,
 }


log level of logging used with generally any mist function that isn't in the database area of code.

dbLog level of logging applied to mist's built in loggers in the database area of code.

errorPopup Whether or not error logs will generate a popup

warnPopup whether or not warning logs will generate a popup

infoPopup whether or not info logs will generate a popup

Return value:
nothing
Return example:
Usage Examples:
The following sets the built in logger to info.
     mist.debug.changeSetting({log = 'info'})
Notes:
Related Functions
writeData, dumpDBs, dump_G, writeGroup, writeTypes, changeSetting

Scripting Engine

MIST Root Page