add a default Logger and a main example