Documentation ¶
Index ¶
- func Debug(msg string, keyvals ...interface{})
- func Error(msg string, keyvals ...interface{})
- func Info(msg string, keyvals ...interface{})
- func InitLogger(l tmlog.Logger)
- func NewAsyncFileLogger(filePath string, buffSize int64) tmlog.Logger
- func NewConsoleLogger() tmlog.Logger
- func With(keyvals ...interface{}) tmlog.Logger
- type AsyncFileWriter
- type HourTicker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func NewConsoleLogger ¶
Types ¶
type AsyncFileWriter ¶
type AsyncFileWriter struct {
// contains filtered or unexported fields
}
func NewAsyncFileWriter ¶
func NewAsyncFileWriter(filePath string, bufSize int64) *AsyncFileWriter
func (*AsyncFileWriter) Flush ¶
func (w *AsyncFileWriter) Flush() error
func (*AsyncFileWriter) Start ¶
func (w *AsyncFileWriter) Start() error
func (*AsyncFileWriter) Stop ¶
func (w *AsyncFileWriter) Stop()
func (*AsyncFileWriter) SyncWrite ¶
func (w *AsyncFileWriter) SyncWrite(msg []byte)
type HourTicker ¶
func NewHourTicker ¶
func NewHourTicker() *HourTicker
func (*HourTicker) Stop ¶
func (ht *HourTicker) Stop()
func (*HourTicker) Ticker ¶
func (ht *HourTicker) Ticker() <-chan time.Time
Click to show internal directories.
Click to hide internal directories.