Documentation
¶
Index ¶
- func Close()
- func Config(writers ...*Writer)
- func Debug(messages ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugv(message string, keysValues ...interface{})
- func Error(messages ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorv(message string, keysValues ...interface{})
- func Fatal(messages ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalv(message string, keysValues ...interface{})
- func Info(messages ...interface{})
- func Infof(format string, args ...interface{})
- func Infov(message string, keysValues ...interface{})
- func Panic(messages ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicv(message string, keysValues ...interface{})
- func RedirectStdLog() func()
- func RedirectStdLogAt(level Level) func()
- func Sync()
- func Trace(messages ...interface{})
- func Tracef(format string, args ...interface{})
- func Tracev(message string, keysValues ...interface{})
- func Warn(messages ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnv(message string, keysValues ...interface{})
- type Console
- type EnablerFunc
- type Influx
- type Level
- type Logger
- func (l *Logger) Debug(messages ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugv(message string, keysValues ...interface{})
- func (l *Logger) Error(messages ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorv(message string, keysValues ...interface{})
- func (l *Logger) Fatal(messages ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(messages ...interface{})
- func (l *Logger) Fatalv(message string, keysValues ...interface{})
- func (l *Logger) Info(messages ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infov(message string, keysValues ...interface{})
- func (l *Logger) Panic(messages ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicln(messages ...interface{})
- func (l *Logger) Panicv(message string, keysValues ...interface{})
- func (l *Logger) Print(messages ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(messages ...interface{})
- func (l *Logger) Trace(messages ...interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Tracev(message string, keysValues ...interface{})
- func (l *Logger) Warn(messages ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnv(message string, keysValues ...interface{})
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedirectStdLog ¶
func RedirectStdLog() func()
RedirectStdLog std log to this to Info Level It returns a function to restore the original prefix and flags and reset the standard library's output to os.Stderr.
func RedirectStdLogAt ¶
func RedirectStdLogAt(level Level) func()
RedirectStdLogAt std log to this at log level It returns a function to restore the original prefix and flags and reset the standard library's output to os.Stderr.
Types ¶
type Console ¶ added in v1.0.0
type Console struct {
// contains filtered or unexported fields
}
Console write log to console stderr
type EnablerFunc ¶ added in v1.0.0
type Influx ¶ added in v1.0.0
type Influx struct {
// contains filtered or unexported fields
}
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type Writer ¶ added in v1.0.0
type Writer struct {
// contains filtered or unexported fields
}
func ConsoleWriter ¶ added in v1.0.0
func ConsoleWriter(caller bool, stack EnablerFunc, enabler EnablerFunc) *Writer
func ConsoleWriterWithOptions ¶ added in v1.5.3
func ConsoleWriterWithOptions(caller bool, stack EnablerFunc, enabler EnablerFunc, scopeAlign int, callerAlign int) *Writer
ConsoleWriterWithOptions use default value of scopeAlign & callerAlign with set they with -1
func InfluxWriter ¶ added in v1.0.0
func InfluxWriter(serverURL string, authToken string, org string, bucket string, app string, caller bool, stack EnablerFunc, enabler EnablerFunc) *Writer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.