added a primitive logger