Added example with logger and spark