Documentation ¶
Overview ¶
Package log provides logging for rclone
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOpt = Options{
Format: "date,time",
SyslogFacility: "DAEMON",
}
DefaultOpt is the default values used for Opt
View Source
var Opt = DefaultOpt
Opt is the options for the logger
Functions ¶
func NewCallerHook ¶ added in v1.6.1
NewCallerHook use to make a hook
func Redirected ¶
func Redirected() bool
Redirected returns true if the log has been redirected from stdout
func Stack ¶ added in v1.6.1
func Stack(o interface{}, info string)
Stack logs a stack trace of callers with the o and info passed in
Types ¶
type CallerHook ¶ added in v1.6.1
CallerHook for log the calling file and line of the fine
func (*CallerHook) Fire ¶ added in v1.6.1
func (h *CallerHook) Fire(entry *logrus.Entry) error
Fire logs the information of context (filename and line)
func (*CallerHook) Levels ¶ added in v1.6.1
func (h *CallerHook) Levels() []logrus.Level
Levels implement applied hook to which levels
type Options ¶ added in v1.50.4
type Options struct { File string // Log everything to this file Format string // Comma separated list of log format options UseSyslog bool // Use Syslog for logging SyslogFacility string // Facility for syslog, eg KERN,USER,... }
Options contains options for the remote control server
Click to show internal directories.
Click to hide internal directories.