Documentation ¶
Overview ¶
Package log ...
package main import ( "sync" "github.com/ije/gox/log" ) func main() { log, err := log.New("file:/var/log/error.log?buffer=32kb") if err != nil { return } log.Info("Hello World!") }
Index ¶
- Variables
- func Drivers() (list []string)
- func Register(name string, driver Driver)
- type Driver
- type Level
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) FlushBuffer() (err error)
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Log(v ...interface{})
- func (l *Logger) Logf(format string, v ...interface{})
- func (l *Logger) SetBuffer(cap int)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetLevelByName(name string)
- func (l *Logger) SetOutput(output io.Writer)
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) SetQuite(quite bool)
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorArgumentFormat = fmt.Errorf("invalid argument format")
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) FlushBuffer ¶
func (*Logger) SetLevelByName ¶
Click to show internal directories.
Click to hide internal directories.