Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleHandler ¶
func NewConsoleHandler ¶
func NewConsoleHandler(level record.Level) *ConsoleHandler
func (*ConsoleHandler) Handle ¶
func (h *ConsoleHandler) Handle(r record.Record) bool
Handle Handles a record.
func (*ConsoleHandler) IsHandling ¶
func (h *ConsoleHandler) IsHandling(r record.Record) bool
IsHandling Checks whether the given record will be handled by this handler.
type FileHandler ¶ added in v0.2.0
func NewFileHandler ¶ added in v0.2.0
func NewFileHandler(filename string, level record.Level) *FileHandler
func (*FileHandler) GetTimedFilename ¶ added in v0.2.0
func (h *FileHandler) GetTimedFilename() string
GetTimedFilename Gets the Timed filename.
func (*FileHandler) Handle ¶ added in v0.2.0
func (h *FileHandler) Handle(r record.Record) bool
Handle Handles a record.
func (*FileHandler) IsHandling ¶ added in v0.2.0
func (h *FileHandler) IsHandling(r record.Record) bool
IsHandling Checks whether the given record will be handled by this handler.
func (*FileHandler) SetLevel ¶ added in v0.2.0
func (h *FileHandler) SetLevel(level record.Level)
SetLevel Sets minimum logging level at which this handler will be triggered.
type Handler ¶ added in v0.2.0
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetFormatter ¶ added in v0.2.0
GetFormatter Gets the formatter.
Click to show internal directories.
Click to hide internal directories.