'
+1-800-870-4611 outreach@mkp.org

MKP Base Disable Verbose Mode

Verbose mode controls writing of diagnostic information to a log file. This capability is very useful when making changes to this code or when configuring pages that use this code. You can turn verbose mode off with this code:

It is a good practice to clear the log file before executing this code:

mkp_base clear_diagnostics
mkp_base verbose option=verbose+false set_option
mkp_base show_diagnostics clear_diagnostics

Output:

MKP Plugins: Setting Option verbose = [true]

MKP Plugins: Setting Option verbose = [false]


Diagnostic Logfile Contents

Logfile: /nas/content/live/mkpusaws/wp-content/MKP Plugins_1.log

10/25/20 19:31:10->MKP Plugins: Logfile [/nas/content/live/mkpusaws/wp-content/MKP Plugins_1.log] cleared
10/25/20 19:31:10->MKP Plugins: Getting name=[verbose] code=[verbose] value=[true]
10/25/20 19:31:10->MKP Plugins: Getting name=[option] code=[verbose] value=[false]
10/25/20 19:31:10->MKP Plugins: Getting name=[set_option] code=[set_option] value=[true]
10/25/20 19:31:10->MKP Plugins: Doing code=[verbose] name=[verbose] value=[true]
10/25/20 19:31:10->MKP Plugins: Doing code=[verbose] name=[option] value=[false]
10/25/20 19:31:10->MKP Plugins: Doing code=[set_option] name=[set_option] value=[true]
10/25/20 19:31:10->MKP Plugins: Setting Option verbose = [true]
10/25/20 19:31:10->MKP Plugins: Setting Option verbose = [false]