Discover Packages
github.com/retsu0/rclone
fs
log
package
Version:
v1.48.1
Opens a new window with list of versions in this module.
Published: Aug 21, 2019
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package log provides logging for rclone
InitLogging start the logging as per the command line flags
NewCallerHook use to make an hook
Redirected returns true if the log has been redirected from stdout
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
type CallerHook struct {
Field string
Skip int
}
CallerHook for log the calling file and line of the fine
Fire logs the information of context (filename and line)
Levels implement applied hook to which levels
Source Files
¶
Click to show internal directories.
Click to hide internal directories.