Documentation
¶
Index ¶
- func Close()
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Flush()
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Log(level Level, skip int, args ...interface{})
- func Logf(level Level, skip int, format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Buffer
- func (b *Buffer) Available() int
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Close() error
- func (b *Buffer) InitFallback(size int)
- func (b *Buffer) InitMap(mapFile string, size int) (err error)
- func (b *Buffer) Len() int
- func (b *Buffer) Reset()
- func (b *Buffer) Write(p []byte) (n int, err error)
- type Config
- func (c *Config) SetBuffer(buffer uint) *Config
- func (c *Config) SetCaller(enb bool) *Config
- func (c *Config) SetCount(count uint) *Config
- func (c *Config) SetFile(file string) *Config
- func (c *Config) SetFlush(flush time.Duration) *Config
- func (c *Config) SetLevel(level Level) *Config
- func (c *Config) SetSize(size uint) *Config
- func (c *Config) SetStderr(enb bool) *Config
- func (c *Config) SetStdout(enb bool) *Config
- type Level
- type Logger
- func (l *Logger) Close()
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Flush()
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Log(level Level, skip int, args ...interface{})
- func (l *Logger) Logf(level Level, skip int, format string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) InitFallback ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.