Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewWriterErr ¶
type NewWriterErr struct {
Errs []error
}
func (*NewWriterErr) AddErr ¶
func (e *NewWriterErr) AddErr(err error)
func (NewWriterErr) Error ¶
func (e NewWriterErr) Error() string
type TRFileHook ¶
type TRFileHook struct { MainWriter *os.File ErrWriter *os.File MainDateWriter *os.File ErrDateWriter *os.File NowTime time.Time When string FileName string FileErrName string FilePath string FilePrefix string // contains filtered or unexported fields }
func NewTRFileHook ¶
func NewTRFileHook(logdir, filename, when string) (*TRFileHook, error)
func NewTRFileHookHostname ¶
func NewTRFileHookHostname(logdir, filename, when string) (*TRFileHook, error)
func (*TRFileHook) CloseWrites ¶
func (h *TRFileHook) CloseWrites()
func (*TRFileHook) Levels ¶
func (h *TRFileHook) Levels() []logrus.Level
func (*TRFileHook) SetFilePrefix ¶
func (h *TRFileHook) SetFilePrefix(fp string)
Click to show internal directories.
Click to hide internal directories.