Fixed some compiler warnings by statically accessing the logger.