Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHandler ¶
type BaseHandler struct {
// contains filtered or unexported fields
}
func NewBaseHandler ¶
func NewBaseHandler(conf *config.HandlerConfig) *BaseHandler
func (*BaseHandler) DefaultSetting ¶
func (bh *BaseHandler) DefaultSetting()
func (*BaseHandler) Init ¶
func (bh *BaseHandler) Init() error
func (*BaseHandler) MarkerMatched ¶
func (bh *BaseHandler) MarkerMatched(marker string) bool
func (*BaseHandler) Shutdown ¶
func (bh *BaseHandler) Shutdown()
type FileHandler ¶
type FileHandler struct { *BaseHandler // contains filtered or unexported fields }
func NewFileHandler ¶
func NewFileHandler(conf *config.HandlerConfig) *FileHandler
func (*FileHandler) Flush ¶
func (fh *FileHandler) Flush(bs []byte) error
func (*FileHandler) Init ¶
func (fh *FileHandler) Init() error
func (*FileHandler) Rotate ¶
func (fh *FileHandler) Rotate() error
type Handler ¶
func HandlerFactory ¶
func HandlerFactory(conf *config.HandlerConfig) Handler
type HandlerType ¶
type HandlerType int
const ( STD HandlerType = iota FILE )
func NewHandlerType ¶
func NewHandlerType(handlerType string) HandlerType
func (HandlerType) String ¶
func (h HandlerType) String() string
type LogEntries ¶
type StdHandler ¶
type StdHandler struct {
*BaseHandler
}
func NewStdHandler ¶
func NewStdHandler(handlerConf *config.HandlerConfig) *StdHandler
func (*StdHandler) Init ¶
func (sh *StdHandler) Init() error
Click to show internal directories.
Click to hide internal directories.