file

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package file implements the log.Interface. The write process is done in a go routine. All operations are using a sync.RWMutex for synchronization.

Check the file.Options for the available configurations.

Benchmark file is available.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFilepath = errors.New("log/file: option Filepath is mandatory")
)

Error messages

Functions

func New

func New(options Options) (*file, error)

New creates a file log provider with the given options. If the option.Filepath is not set or the path does not exist, an error will return.

Types

type Options

type Options struct {
	// The Filepath is mandatory.
	Filepath string
}

Options of the file log provider.

Jump to

Keyboard shortcuts

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