rsravanreddy / GoLogger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoLogger

Go logger is a high performance logger which logs the messages to kafka and comsumers can be implemented to process logs from kafka

Setup

Before you start the service you need to run kafka cluster and get valid kafka broker()

step 1:

Start a kafka cluster,default broker address is localhost:9092 if you used the out of box kafka server properties

step 2:

svchost: :8080
kafkaaddress: localhost:9092 /* address of kafka broker obtained in step 1 */
dbuser: root /*optioal*/
dbpassword: /*optioal*/
dbhost: localhost/*optioal*/
dbname: Todo /*optioal*/

step 3:

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

About


Languages

Language:Go 95.0%Language:Makefile 5.0%