Documentation ¶
Overview ¶
Package glog provides a deck backend for github.com/golang/glog.
The glog backend supports two types of logging to the glog package. The first is to use deck's standard level functions .Info(), .Error(), etc. These map to the same function calls inside glog.
We also support glog's V-style logging by exporting a V() attribute. This attribute is separate from deck's core V() attribute and only affects glog. When a glog.V() attribute is applied, the V level is passed to glog's V-style info functions.
Example:
deck.InfoA("a message at level 3").With(glog.V(3)).Go()
Providing the V() attribute overrides the deck level, so this:
deck.ErrorA("a message with verbosity").With(glog.V(3)).Go()
is the same as this:
deck.InfoA("a message with verbosity").With(glog.V(3)).Go()
The glog backend will also attempt to honor deck's Depth() attribute, allowing the caller to modify the stack frames output by glog messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.