Documentation ¶
Index ¶
- func D(v ...interface{})
- func Df(format string, args ...interface{})
- func E(v ...interface{})
- func Ef(format string, args ...interface{})
- func I(v ...interface{})
- func If(format string, args ...interface{})
- func Init(directory, fileName string, maxRecent int, ...)
- func RecentLogs(reverse bool) string
- func W(v ...interface{})
- func Wf(format string, args ...interface{})
- type MiniLogger
- func (miniLogger *MiniLogger) Append(v ...interface{})
- func (miniLogger *MiniLogger) Appendf(format string, args ...interface{})
- func (miniLogger *MiniLogger) BeginClip()
- func (miniLogger *MiniLogger) Close()
- func (miniLogger *MiniLogger) Content() string
- func (miniLogger *MiniLogger) EndClip() string
- func (miniLogger *MiniLogger) NewChild() *MiniLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecentLogs ¶
Types ¶
type MiniLogger ¶
type MiniLogger struct { OnAppended func(string) OnClosed func() // contains filtered or unexported fields }
func NewFileLogger ¶
func NewFileLogger(filePath string, maxSize int64) *MiniLogger
func NewTempLogger ¶
func NewTempLogger(name string) *MiniLogger
func (*MiniLogger) Append ¶
func (miniLogger *MiniLogger) Append(v ...interface{})
func (*MiniLogger) Appendf ¶
func (miniLogger *MiniLogger) Appendf(format string, args ...interface{})
func (*MiniLogger) BeginClip ¶
func (miniLogger *MiniLogger) BeginClip()
func (*MiniLogger) Close ¶
func (miniLogger *MiniLogger) Close()
func (*MiniLogger) Content ¶
func (miniLogger *MiniLogger) Content() string
func (*MiniLogger) EndClip ¶
func (miniLogger *MiniLogger) EndClip() string
func (*MiniLogger) NewChild ¶
func (miniLogger *MiniLogger) NewChild() *MiniLogger
Click to show internal directories.
Click to hide internal directories.