rclone: github.com/ncw/rclone/fs/log Index | Files

package log

import "github.com/ncw/rclone/fs/log"

Package log provides logging for rclone

Index

Package Files

log.go redirect_stderr_unix.go syslog_unix.go

func InitLogging Uses

func InitLogging()

InitLogging start the logging as per the command line flags

func Redirected Uses

func Redirected() bool

Redirected returns true if the log has been redirected from stdout

func Trace Uses

func Trace(o interface{}, format string, a ...interface{}) func(string, ...interface{})

Trace debugs the entry and exit of the calling function

It is designed to be used in a defer statement so it returns a function that logs the exit parameters.

Any pointers in the exit function will be dereferenced

Package log imports 12 packages (graph) and is imported by 22 packages. Updated 2018-11-25. Refresh now. Tools for package owners.