Documentation ¶ Index ¶ func FlushLogs() func InitLogs() type LogWriter func (writer LogWriter) Write(data []byte) (n int, err error) type Options func ParseFlags(fs *pflag.FlagSet) Options func (opt Options) ToFlags() []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FlushLogs ¶ func FlushLogs() FlushLogs flushes logs immediately. func InitLogs ¶ func InitLogs() InitLogs initializes logs the way we want for kubernetes. Types ¶ type LogWriter ¶ type LogWriter struct{} LogWriter serves as a bridge between the standard log package and the appscode/log package. func (LogWriter) Write ¶ func (writer LogWriter) Write(data []byte) (n int, err error) Write implements the io.Writer interface. type Options ¶ type Options struct { ToStderr bool // The -logtostderr flag. AlsoToStderr bool // The -alsologtostderr flag. StderrThreshold string // The -stderrthreshold flag. Verbosity string // V logging level, the value of the -v flag/ } func ParseFlags ¶ func ParseFlags(fs *pflag.FlagSet) Options func (Options) ToFlags ¶ func (opt Options) ToFlags() []string Source Files ¶ View all Source files flags.go logs.go Click to show internal directories. Click to hide internal directories.