added logging example

added logging example.
added log entries to button.

added button and log entries to the click handler.