lumberjack

package
v0.0.0-...-d7aea0d Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriterCreator

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

LogWriterCreator is a writer.LogWriterCreator, which creats a lumberjack instance as writer.LogWriter

func New

func New(dirPath string, maxSize, maxBackups, maxAge int, compress bool) *LogWriterCreator

New creates a Lumberjack log writer creator

func (*LogWriterCreator) Create

func (w *LogWriterCreator) Create(id string) writer.LogWriter

Create returns an instance of Lumberjack{}

Jump to

Keyboard shortcuts

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