updated logger

Thanks Matt