changed logging module from class to non class