Documentation ¶
Index ¶
- func Critical(fmt string, v ...interface{})
- func Debug(fmt string, v ...interface{})
- func Error(fmt string, v ...interface{})
- func Gen(servername, filename string)
- func Info(fmt string, v ...interface{})
- func InitLog(servername, dirname, filename, logFormat string)
- func Notice(fmt string, v ...interface{})
- func SetLogger(lg Logger)
- func Warning(fmt string, v ...interface{})
- type FileLogWriter
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileLogWriter ¶
type FileLogWriter struct {
// contains filtered or unexported fields
}
func NewFileLogWriter ¶
func NewFileLogWriter(filename string, rotate bool, maxsize int64) (*FileLogWriter, error)
func (*FileLogWriter) Close ¶
func (w *FileLogWriter) Close()
func (*FileLogWriter) Rotate ¶
func (w *FileLogWriter) Rotate() error
If this is called in a threaded context, it MUST be synchronized
func (*FileLogWriter) SetRotateHourly ¶
func (w *FileLogWriter) SetRotateHourly(hourly bool) *FileLogWriter
func (*FileLogWriter) SetRotateSize ¶
func (w *FileLogWriter) SetRotateSize(maxsize int64) *FileLogWriter
Click to show internal directories.
Click to hide internal directories.