You can easily write a message to the log file using a shortcode:
mkp_base message=’Sample diagnostic message’ log
By adding the show_diagnostics action you can see what is in the log.
mkp_base message=’Sample diagnostic message’ log show_diagnostics
You can specify the prefix that precedes each message using the source=’your prefix’:
mkp_base message=’Sample diagnostic message’ source=’DEMO: ‘ log show_diagnostics
It is a good idea to clear the log frequently:
mkp_base clear_diagnostics
All of these actions can be combined in a single shortcode:
mkp_base clear_diagnostics
mkp_base message=’Sample diagnostic message’ source=’DEMO: ‘ log show_diagnostics
mkp_base message=’Sample diagnostic message’ source=’DEMO: ‘ log show_diagnostics
[mkp_base clear_diagnostics]
[mkp_base message=’Sample diagnostic message’ source=’DEMO: ‘ log show_diagnostics]