Documentation
¶
Index ¶
- Variables
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func IsEnabled(at LogLevel) bool
- func RedactFormat(format string) string
- func SetLogLevel(loglevelInfo LogLevelInfo)
- func StackTrace() string
- func TagUD(arg interface{}) interface{}
- func Tracef(format string, v ...interface{})
- func Verbosef(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type GocbLogger
- type LogLevel
- type LogLevelInfo
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LogTimeFormat = "2006-01-02T15:04:05.000-07:00"
)
Functions ¶
func RedactFormat ¶
func SetLogLevel ¶
func SetLogLevel(loglevelInfo LogLevelInfo)
func StackTrace ¶
func StackTrace() string
Types ¶
type GocbLogger ¶
type GocbLogger struct{}
type LogLevelInfo ¶
type LogLevelInfo struct {
GocbLevel string `json:"gocb_log_level,omitempty"`
EventingLevel string `json:"eventing_log_level,omitempty"`
}
func (LogLevelInfo) String ¶
func (l LogLevelInfo) String() string
type Logger ¶
type Logger interface {
// Warnings, logged by default.
Warnf(format string, v ...interface{})
// Errors, logged by default.
Errorf(format string, v ...interface{})
// Fatal errors. Will not terminate execution.
Fatalf(format string, v ...interface{})
// Informational messages.
Infof(format string, v ...interface{})
// Verbose messages like request logging
Verbosef(format string, v ...interface{})
// Get stack trace
StackTrace() string
// Debugging messages
Debugf(format string, v ...interface{})
// Program execution - most verbose
Tracef(format string, v ...interface{})
}
Click to show internal directories.
Click to hide internal directories.