loggingfs

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package loggingfs implements a wrapper that logs all filesystem actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(e fs.Entry, printf func(msg string, args ...interface{}), options ...Option) fs.Entry

Wrap returns an Entry that wraps another Entry and logs all method calls.

Types

type Option

type Option func(o *loggingOptions)

Option modifies the behavior of logging wrapper.

func Output

func Output(outputFunc func(fmt string, args ...interface{})) Option

Output is an option that causes all output to be sent to a given function instead of log.Printf()

func Prefix

func Prefix(prefix string) Option

Prefix specifies prefix to be prepended to all log output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL