Added standalone example
Respect 'debug' attribute when logging events