decorator for logger, need update