Go logger is a high performance logger which logs the messages to kafka and comsumers can be implemented to process logs from kafka
Before you start the service you need to run kafka cluster and get valid kafka broker()
Start a kafka cluster,default broker address is localhost:9092
if you used the out of box kafka server properties
svchost: :8080
kafkaaddress: localhost:9092 /* address of kafka broker obtained in step 1 */
dbuser: root /*optioal*/
dbpassword: /*optioal*/
dbhost: localhost/*optioal*/
dbname: Todo /*optioal*/
make build
./cmd/server/server --config config.yaml server
You should see if everything went ok
[GIN-debug] POST /log --> logger/service.(*LogResource).CreateLog-fm (4 handlers)
[GIN-debug] Environment variable PORT is undefined. Using port :8080 by default
[GIN-debug] Listening and serving HTTP on :8080