Documentation
¶
Index ¶
- func Debug(params ...interface{})
- func Error(params ...interface{})
- func Get() sts.Logger
- func GetDebug() bool
- func Info(params ...interface{})
- func Init(rootDir string, debug bool, mkdir MakeDir, open OpenFile)
- func InitExternal(logger sts.Logger)
- func Recent(n int) []string
- func SetDebug(on bool)
- type FileIO
- func (f *FileIO) Parse(handler func(name, renamed, hash string, size int64, t time.Time) bool, ...) bool
- func (f *FileIO) Received(file sts.Received)
- func (f *FileIO) Sent(file sts.Sent)
- func (f *FileIO) WasReceived(relPath, hash string, after time.Time, before time.Time) bool
- func (f *FileIO) WasSent(relPath, hash string, after time.Time, before time.Time) bool
- type General
- type MakeDir
- type OpenFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileIO ¶
type FileIO struct {
// contains filtered or unexported fields
}
FileIO implements sts.SendLogger and sts.ReceiveLogger
func (*FileIO) Parse ¶
func (f *FileIO) Parse( handler func(name, renamed, hash string, size int64, t time.Time) bool, after time.Time, before time.Time) bool
Parse reads the log files in the provided time range and calls the handler on each record
func (*FileIO) WasReceived ¶
WasReceived tries to find the path specified between the times specified
type General ¶
type General struct {
// contains filtered or unexported fields
}
General is a rolling-file logger that implements sts.Logger
func NewGeneral ¶
NewGeneral creates a new General logging instance
Click to show internal directories.
Click to hide internal directories.