local

package
v0.0.0-...-47edf51 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Directory where logs will be written to.
	Dir string
}

Config defines configuration for local output.

type Local

type Local struct {
	// contains filtered or unexported fields
}

Local implements Collector.Ouput Interface. Local allows the logs to be written to local disk.

func New

func New(c *Config) (*Local, error)

New returns *Local.

func (*Local) Put

func (l *Local) Put(f io.ReadSeeker, dst string) (string, error)

Put stores the data from f io.ReadSeeker to dir (specified in Local config) and dst filename. It returns the absolute path of the log file on the disk.

Jump to

Keyboard shortcuts

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