-
Golang logging using USER profile on Mint 19
Hi, I committed on learning Golang and as a part of this task i came to play with logging examples. It seems that if you user syslog.LOG_USER the info is stored in the /var/log/syslog. Here is the code and also the output package main import ( “io” “log” “log/syslog” “os” “path/filepath” ) func main() {…
-
Small go code example for zookeeper resource editing
Hi, We have the task of “service restart coordination” for our Apache Kafka cluster. It’s still a work in progress but if you want to use the zookeeper for some status verification and update, something like this will work as an example. package main import ( “fmt” “io” “launchpad.net/gozk” “os” “strings” “sync” “time” ) const…