added example for logging

1. created a folder to include examples
2. added the example for logging