Documentation ¶
Overview ¶
Package logx provides ...
Package logx provides ...
Package logx provides ...
Index ¶
- Constants
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type Entry
- func (e *Entry) Error(args ...interface{})
- func (e *Entry) Errorf(format string, args ...interface{})
- func (e *Entry) Fatal(args ...interface{})
- func (e *Entry) Fatalf(format string, args ...interface{})
- func (e *Entry) Info(args ...interface{})
- func (e *Entry) Infof(format string, args ...interface{})
- func (e *Entry) Output(calldepth int)
- func (e *Entry) Warning(args ...interface{})
- func (e *Entry) Warningf(format string, args ...interface{})
- func (e *Entry) WithContext(ctx context.Context) *Entry
- func (e *Entry) WithData(data map[string]interface{}) *Entry
- type Level
- type Logger
- type Logging
- func (log *Logging) Error(args ...interface{})
- func (log *Logging) Errorf(format string, args ...interface{})
- func (log *Logging) Fatal(args ...interface{})
- func (log *Logging) Fatalf(format string, args ...interface{})
- func (log *Logging) Info(args ...interface{})
- func (log *Logging) Infof(format string, args ...interface{})
- func (log *Logging) V(l Level) bool
- func (log *Logging) Warning(args ...interface{})
- func (log *Logging) Warningf(format string, args ...interface{})
- type Option
- type Options
Constants ¶
View Source
const (
FlagFile = 1 << iota
)
flag list
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { Level Level Time time.Time Data map[string]interface{} Message string // contains filtered or unexported fields }
Entry log entry
func (*Entry) Fatal ¶
func (e *Entry) Fatal(args ...interface{})
Fatal logs to ERROR log. with os.Exit(1).
func (*Entry) WithContext ¶
WithContext context
type Logger ¶
type Logger interface { // Info logs to INFO log. Info(args ...interface{}) // Info logs to INFO log. Infof(format string, args ...interface{}) // Warning logs to WARNING log. Warning(args ...interface{}) // Warning logs to WARNING log. Warningf(format string, args ...interface{}) // Error logs to ERROR log. Error(args ...interface{}) // Error logs to ERROR log. Errorf(format string, args ...interface{}) // Fatal logs to ERROR log. with os.Exit(1). Fatal(args ...interface{}) // Fatal logs to ERROR log. with os.Exit(1). Fatalf(format string, args ...interface{}) // V reports whether verbosity level log is at least the requested verbose level. V(level Level) bool }
Logger represents a logger.
type Logging ¶
type Logging struct {
// contains filtered or unexported fields
}
Logging logging setup.
func (*Logging) Fatal ¶
func (log *Logging) Fatal(args ...interface{})
Fatal logs to ERROR log. with os.Exit(1).
Click to show internal directories.
Click to hide internal directories.