add logger package
update autogen.go to adjust new error code style