diff --git a/browserium/utility/logger.py b/browserium/utility/logger.py index b802200..c692747 100644 --- a/browserium/utility/logger.py +++ b/browserium/utility/logger.py @@ -2,22 +2,27 @@ class Logger(object): + @classmethod def log_info(self, informationMessage): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.INFO) logging.info(informationMessage) + @classmethod def log_error(self, errorMessage): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.ERROR) logging.info(errorMessage) + @classmethod def log_debug(self, debugMessage): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.DEBUG) logging.info(debugMessage) + @classmethod def log_warning(self, warningMessage): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.WARNING) logging.info(warningMessage) + @classmethod def log_critical(self, criticalMessage): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.CRITICAL) logging.critical(criticalMessage) \ No newline at end of file