Please use the OO version of cpanel::logger.  I believe there is already a logger object inside of  $self.