Add example for logger