logging

package
v0.3.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package logging implements wrapper around Storage that logs all activity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapper

func NewWrapper(wrapped storage.Storage, options ...Option) storage.Storage

NewWrapper returns a Storage wrapper that logs all storage commands.

Types

type Option

type Option func(s *loggingStorage)

Option modifies the behavior of logging storage wrapper.

func Output

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

Output is a logging storage 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