Brijesh's Git Server — watchman_client @ 32320e7fdb3668d20efb3e96289935632db03e5b

client library for using watchman in go programs

utils/send_logs.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
package utils

import "fmt"

func SendLogsToServer() {
	logs, err := ReadLogs()
	if err != nil {
		fmt.Println("Error reading logs:", err)
		return
	}

	for _, log := range logs {
		fmt.Println(log)
	}
}