Logger with example