Documentation
¶
Index ¶
- func BytesToString(bytes uint64) string
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Init(level LogLevel, writer ...io.Writer)
- func MustToBytes(s string) uint64
- func NewWriter(w ...io.Writer) io.Writer
- func Printf(lvl LogLevel, format string, args ...interface{})
- func Println(lvl LogLevel, args ...interface{})
- func ToBytes(s string) (uint64, error)
- func Tracef(format string, args ...interface{})
- func Traceln(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- type ByteSize
- type ILogger
- type LogLevel
- type Logger
- func (l Logger) CurrentLevel() int
- func (l Logger) Debugf(format string, args ...interface{})
- func (l Logger) Debugln(args ...interface{})
- func (l Logger) Errorf(format string, args ...interface{})
- func (l Logger) Errorln(args ...interface{})
- func (l Logger) Fatalf(format string, args ...interface{})
- func (l Logger) Fatalln(args ...interface{})
- func (l Logger) Infof(format string, args ...interface{})
- func (l Logger) Infoln(args ...interface{})
- func (l Logger) Printf(lvl LogLevel, format string, args ...interface{})
- func (l Logger) Println(lvl LogLevel, args ...interface{})
- func (l Logger) Tracef(format string, args ...interface{})
- func (l Logger) Traceln(args ...interface{})
- func (l Logger) Warnf(format string, args ...interface{})
- func (l Logger) Warnln(args ...interface{})
- type LoggerWriter
- type RotateWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
func MustToBytes ¶
Types ¶
type ILogger ¶
type ILogger interface { CurrentLevel() int Fatalln(args ...interface{}) Fatalf(format string, args ...interface{}) Errorln(args ...interface{}) Errorf(format string, args ...interface{}) Warnln(args ...interface{}) Warnf(format string, args ...interface{}) Infoln(args ...interface{}) Infof(format string, args ...interface{}) Debugln(args ...interface{}) Debugf(format string, args ...interface{}) Traceln(args ...interface{}) Tracef(format string, args ...interface{}) }
type Logger ¶
func (Logger) CurrentLevel ¶
type LoggerWriter ¶
type RotateWriter ¶
type RotateWriter struct {
// contains filtered or unexported fields
}
<editor-fold desc="RotateWriter">
func NewRotateWriter ¶
func NewRotateWriter(filename string, size uint64, rotateDelay time.Duration) (*RotateWriter, context.CancelFunc)
Make a new RotateWriter. Return nil if error occurs during setup.
func (*RotateWriter) Rotate ¶
func (w *RotateWriter) Rotate() (err error)
Perform the actual act of rotating and reopening file.
Click to show internal directories.
Click to hide internal directories.