thinkgo: github.com/thinkoner/thinkgo/log/handler Index | Files

package handler

import "github.com/thinkoner/thinkgo/log/handler"

Index

Package Files

console.go file.go handler.go

type ConsoleHandler Uses

type ConsoleHandler struct {
    Handler
    sync.Mutex
    // contains filtered or unexported fields
}

func NewConsoleHandler Uses

func NewConsoleHandler(level record.Level) *ConsoleHandler

func (*ConsoleHandler) Handle Uses

func (h *ConsoleHandler) Handle(r record.Record) bool

Handle Handles a record.

func (*ConsoleHandler) IsHandling Uses

func (h *ConsoleHandler) IsHandling(r record.Record) bool

IsHandling Checks whether the given record will be handled by this handler.

type FileHandler Uses

type FileHandler struct {
    Handler
    sync.Mutex
    // contains filtered or unexported fields
}

func NewFileHandler Uses

func NewFileHandler(filename string, level record.Level) *FileHandler

func (*FileHandler) GetTimedFilename Uses

func (h *FileHandler) GetTimedFilename() string

GetTimedFilename Gets the Timed filename.

func (*FileHandler) Handle Uses

func (h *FileHandler) Handle(r record.Record) bool

Handle Handles a record.

func (*FileHandler) IsHandling Uses

func (h *FileHandler) IsHandling(r record.Record) bool

IsHandling Checks whether the given record will be handled by this handler.

func (*FileHandler) SetLevel Uses

func (h *FileHandler) SetLevel(level record.Level)

SetLevel Sets minimum logging level at which this handler will be triggered.

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields
}

func (*Handler) GetFormatter Uses

func (h *Handler) GetFormatter() formatter.Formatter

GetFormatter Gets the formatter.

func (*Handler) SetFormatter Uses

func (h *Handler) SetFormatter(f formatter.Formatter) *Handler

SetFormatter Sets the formatter.

Package handler imports 7 packages (graph) and is imported by 1 packages. Updated 2019-05-29. Refresh now. Tools for package owners.