logger with decorator using logging module, need update and refactor