-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Home
Lucas Clemente edited this page Jun 7, 2017
·
20 revisions
It is necessary to bind it correctly:
go run example/main.go -bind "0.0.0.0:6121"
ginkgo watch -r -skipPackage integrationtests -skipMeasurements
Launch with env QUIC_GO_LOG_LEVEL=x
set, with x:
- 1 for Debug
- 2 for Info
- 3 for Error
- 4 for no logging (default)
To write the logs to a file:
f, err := os.Create("./log.txt")
defer f.Close()
if err != nil {
panic(err)
}
log.SetOutput(f)
or with a buffered Writer:
f, err := os.Create("./log.txt")
defer f.Close()
if err != nil {
panic(err)
}
writer := bufio.NewWriter(f)
log.SetOutput(writer)