Documentation
¶
Overview ¶
Package logs Leveled Log Library. Copyright (C) 2020 To All Authors. All rights reserved. Author: Ron. Date: 2020-08-08 Version: 1.0
Index ¶
- func Debug(v ...interface{})
- func Debugf(ft string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(ft string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(fmt string, v ...interface{})
- func Info(v ...interface{})
- func Infof(ft string, v ...interface{})
- func Paincf(ft string, v ...interface{})
- func Panic(v ...interface{})
- func SetLevel(level string)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Trace(v ...interface{})
- func Tracef(ft string, v ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(ft string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(ft string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(ft string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(ft string, v ...interface{})
- func (l *Logger) Paincf(ft string, v ...interface{})
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) SetLevel(level string)
- func (l *Logger) SetOutput(writer io.Writer)
- func (l *Logger) Trace(v ...interface{})
- func (l *Logger) Tracef(ft string, v ...interface{})
- type Logs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v0.0.5
func Debugf(ft string, v ...interface{})
Debugf - global debug message.
func Errorf ¶ added in v0.0.5
func Errorf(ft string, v ...interface{})
Errorf - error format message.
func Fatalf ¶ added in v0.0.5
func Fatalf(fmt string, v ...interface{})
Fatalf - format log message.
func Infof ¶ added in v0.0.5
func Infof(ft string, v ...interface{})
Infof - global info level message.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger - define Logger struct.
Click to show internal directories.
Click to hide internal directories.