Updated logger to be protected and use getClass()