updated logger to it is behaving as a singleton object again when
writing