Documentation ¶
Overview ¶
Package log provides logging for rclone
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallerHook ¶
NewCallerHook use to make an hook
func Redirected ¶
func Redirected() bool
Redirected returns true if the log has been redirected from stdout
func Stack ¶ added in v1.50.0
func Stack(o interface{}, info string)
Stack logs a stack trace of callers with the o and info passed in
Types ¶
type CallerHook ¶
CallerHook for log the calling file and line of the fine
func (*CallerHook) Fire ¶
func (h *CallerHook) Fire(entry *logrus.Entry) error
Fire logs the information of context (filename and line)
func (*CallerHook) Levels ¶
func (h *CallerHook) Levels() []logrus.Level
Levels implement applied hook to which levels
Click to show internal directories.
Click to hide internal directories.