Added logger to the example
Fixing the handler example since its outdated