Documentation
¶
Index ¶
- func Debug(msg string, v ...interface{})
- func EnableInMemoryBuffer(capacity int)
- func Error(msg string, v ...interface{})
- func Fatal(msg string, v ...interface{})
- func GetBufferedLogs() string
- func Info(msg string, v ...interface{})
- func Init(logType, logLevel, logPath string, maxSize, maxBackups, maxAge int, ...)
- func Panic(msg string, v ...interface{})
- func SetLevel(levelStr string)
- func Trace(msg string, v ...interface{})
- func Warn(msg string, v ...interface{})
- type BufferWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableInMemoryBuffer ¶
func EnableInMemoryBuffer(capacity int)
func GetBufferedLogs ¶
func GetBufferedLogs() string
Types ¶
type BufferWriter ¶
type BufferWriter struct {
// contains filtered or unexported fields
}
func NewBufferWriter ¶
func NewBufferWriter(capacity int) *BufferWriter
func (*BufferWriter) GetAndClear ¶
func (w *BufferWriter) GetAndClear() string
Click to show internal directories.
Click to hide internal directories.