package
Version:
v0.7.4
Opens a new window with list of versions in this module.
Published: Oct 11, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Errorf formats and returns error and logs at level 2
Init allows for the initialization of log via root command
InitNoFlag initializes without CLI flag which means the level must be initialized
useful for tests
func Printf(format string, args ...interface{})
Printf provides default level printing for things that will always print
Level specifies a level of verbosity for V logs.
Set is part of the flag.Value interface.
String is part of the flag.Value interface.
Type is part of flag.Value interface
Verbose is boolean type that implements Println, Printf
See glog and documentation for V
V reports true if the verbosity at the call site is at least the request level.
This the following glog style code samples are possible:
if clog.V(2) { clog.Print("log this") }
or
clog.V(2).Print("log this")
Whether the call site logs is determined by the `-v` flags.
Printf is equivalent to the global Printf function, guarded by the value of v.
See the documentation of V for usage.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.