change logging struct to Logger. we need to expose Logger to application