Documentation ¶
Index ¶
- Constants
- func AddError(e error) logData
- func Closer()
- func Crit(a ...interface{})
- func Debug(a ...interface{})
- func Error(a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func FileExists(path string) bool
- func Info(a ...interface{})
- func NewLogFiles(path, jsonPath string) (hf *os.File, jf *os.File, err error)
- func Notice(a ...interface{})
- func Printf(format string, a ...interface{})
- func Println(a ...interface{})
- func Rotate(path, jsonPath string) (hf *os.File, jf *os.File, err error)
- func SetLevel(l Level)
- func SetOutputFolder(path string) func()
- func SetPrefix(p string)
- func StartRotate(done <-chan func())
- func TruncateTale(path string)
- func Warning(a ...interface{})
- type Level
- type Stringer
Constants ¶
View Source
const ( B int64 = 1 << (10 * iota) KB MB GB TB PB EB )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.6.4
func NewLogFiles ¶ added in v0.6.4
func SetOutputFolder ¶
func SetOutputFolder(path string) func()
func StartRotate ¶ added in v0.2.0
func StartRotate(done <-chan func())
func TruncateTale ¶ added in v0.6.4
func TruncateTale(path string)
Types ¶
Click to show internal directories.
Click to hide internal directories.