Minor changes to demonstrate how a logger can be used in conjunction to debug mode.

This commit is contained in:
Renan DelValle 2018-04-12 12:26:54 -07:00
commit 70dfb02169
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 3 additions and 1 deletions
examples

View file

@ -18,6 +18,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"time" "time"
@ -89,6 +90,7 @@ func main() {
Factor: 2.0, Factor: 2.0,
Jitter: 0.1, Jitter: 0.1,
}), }),
realis.SetLogger(log.New(os.Stdout, "realis-debug: ", log.Ldate)),
realis.Debug(), realis.Debug(),
} }