Documentation ¶
Index ¶
Constants ¶
View Source
const ( WhenSecond = iota WhenMinute WhenHour WhenDay )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func NewFileHandler ¶
func NewFileHandler(fileName string, flag int) (*FileHandler, error)
func (*FileHandler) Close ¶
func (h *FileHandler) Close() error
type NullHandler ¶
type NullHandler struct { }
func NewNullHandler ¶
func NewNullHandler() *NullHandler
func (*NullHandler) Close ¶
func (h *NullHandler) Close() error
type RotatingFileHandler ¶
type RotatingFileHandler struct {
// contains filtered or unexported fields
}
func NewRotatingFileHandler ¶
func NewRotatingFileHandler(fileName string, maxBytes int64, backupCount int) (*RotatingFileHandler, error)
func (*RotatingFileHandler) Close ¶
func (h *RotatingFileHandler) Close() error
type SocketHandler ¶
type SocketHandler struct {
// contains filtered or unexported fields
}
func NewSocketHandler ¶
func NewSocketHandler(protocol string, addr string) *SocketHandler
func (*SocketHandler) Close ¶
func (h *SocketHandler) Close() error
type StreamHandler ¶
type StreamHandler struct {
// contains filtered or unexported fields
}
func NewStreamHandler ¶
func NewStreamHandler(w io.Writer) *StreamHandler
func (*StreamHandler) Close ¶
func (h *StreamHandler) Close() error
type TimeRotatingFileHandler ¶
type TimeRotatingFileHandler struct {
// contains filtered or unexported fields
}
func NewTimeRotatingFileHandler ¶
func NewTimeRotatingFileHandler(fileName string, when int8) *TimeRotatingFileHandler
func (*TimeRotatingFileHandler) Close ¶
func (h *TimeRotatingFileHandler) Close() error
Click to show internal directories.
Click to hide internal directories.