Logger is optional