used logger as a static should be used.