Documentation ¶
Overview ¶
Package log defines log levels for use with klog.V(...).Info
Index ¶
- Constants
- type Logger
- func (l Logger) Error(err error, msg string, keysAndValues ...interface{})
- func (l Logger) Errorf(err error, format string, args ...interface{})
- func (l Logger) Fatal(msg string, keysAndValues ...interface{})
- func (l Logger) FatalOnError(err error, msg string, keysAndValues ...interface{})
- func (l Logger) Fatalf(format string, args ...interface{})
- func (l Logger) FatalfOnError(err error, format string, args ...interface{})
- func (l Logger) Info(msg string, keysAndValues ...interface{})
- func (l Logger) Infof(format string, args ...interface{})
- func (l Logger) V(level int) Logger
- func (l Logger) Warning(msg string, keysAndValues ...interface{})
- func (l Logger) Warningf(format string, args ...interface{})
Constants ¶
View Source
const ( WarningKey = "WARNING" FatalKey = "FATAL" )
View Source
const ( // INFO : This level is for anything which does not happen very often, and while // not being an error, is important information and helpful to be in the // logs, eg: // * startup information // * HA failovers // * re-connections/disconnections // * ... // This level is not specifically defined as you would use the // klog.Info helpers // // DEBUG : used to provide logs for often occurring events that could be helpful // for debugging errors. DEBUG = 2 // LIBDEBUG: like DEBUG but for submariner internal libraries like admiral. LIBDEBUG = 3 // TRACE : used for logging that occurs often or may dump a lot of information // which generally would be less useful for debugging but can be useful // in some cases, for example tracing function entry/exit, parameters, // structures, etc.. TRACE = 4 // LIBTRACE: like TRACE but for submariner internal libraries like admiral. LIBTRACE = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v0.13.0
func (Logger) FatalOnError ¶ added in v0.13.0
func (Logger) FatalfOnError ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.