refactor for different frameworks
Now it can send log via HTTP
fix several error and add middleware for log