MKP Base Use Custom Handler Function

You can use your own diagnostic message handler by creating a function that takes a message string as it’s sole argument. This is a bit tricky, so it’s a good idea to clear the diagnostics before resetting the option values and then show and clear it afterwards.

mkp_base clear_diagnostics
mkp_base verbose option=function set_option
mkp_base show_diagnostics clear_diagnostics

Output:

[mkp_base clear_diagnostics]
[mkp_base verbose option=function set_option]
[mkp_base show_diagnostics clear_diagnostics]