aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
Diffstat (limited to 'logger')
-rw-r--r--logger/glog/README12
1 files changed, 6 insertions, 6 deletions
diff --git a/logger/glog/README b/logger/glog/README
index 5f9c11485..c7b1e60cc 100644
--- a/logger/glog/README
+++ b/logger/glog/README
@@ -19,20 +19,20 @@ The comment from glog.go introduces the ideas:
Error, Fatal, plus formatting variants such as Infof. It
also provides V-style logging controlled by the -v and
-vmodule=file=2 flags.
-
+
Basic examples:
-
+
glog.Info("Prepare to repel boarders")
-
+
glog.Fatalf("Initialization failed: %s", err)
-
+
See the documentation for the V function for an explanation
of these examples:
-
+
if glog.V(2) {
glog.Info("Starting transaction...")
}
-
+
glog.V(2).Infoln("Processed", nItems, "elements")