Documentation ¶
Overview ¶
Package logging provides common logging functionality.
Index ¶
Constants ¶
View Source
const ( FlowLevel = 2 FnDeclLevel = 3 ResultLevel = 4 SpamLevel = 5 CrazySpamLevel = 6 )
Variables ¶
This section is empty.
Functions ¶
func FnName ¶
func FnName() string
FnName returns the calling function name, e.g. "SomeFunction()". This is useful for logging a function name.
Example:
if glog.V(logging.FnDeclLevel) { glog.Info(logging.FnName()) }
func FnNameWithArgs ¶
FnNameWithArgs returns the calling function name, with argument values, e.g. "SomeFunction(arg1, arg2)". This is useful for logging function calls with arguments.
Example:
if glog.V(logging.FnDeclLevel) { glog.Info(logging.FnNameWithArgs(arg1, arg2, arg3)) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.