Documentation ¶
Index ¶
- func AddFlags(fs *pflag.FlagSet)
- func FlushLogs()
- func GlogSetter(val string) (string, error)
- func Init(rootCmd *cobra.Command, printFlags bool)
- func InitKlog(fs *pflag.FlagSet)
- func InitLogs()
- func NewLogger(prefix string) *log.Logger
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- type HTTPLogger
- type KlogWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func GlogSetter ¶
GlogSetter is a setter to set glog level.
func WordSepNormalizeFunc ¶ added in v0.0.3
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc changes all flags that contain "_" separators
Types ¶
type HTTPLogger ¶ added in v0.0.5
type HTTPLogger struct{}
HTTPLogger serves as a bridge between the standard log package and the klog package.
type KlogWriter ¶
type KlogWriter struct{}
KlogWriter serves as a bridge between the standard log package and the glog package.
Click to show internal directories.
Click to hide internal directories.