writers

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlwaysNewFileWriter

type AlwaysNewFileWriter struct {
	Name     string
	MaxCount int
	// contains filtered or unexported fields
}

AlwaysNewFileWriter create new log for every process

func (*AlwaysNewFileWriter) Write

func (w *AlwaysNewFileWriter) Write(p []byte) (n int, err error)

Write implements io.Writer

type DailyFileWriter

type DailyFileWriter struct {
	Name     string
	MaxCount int
	// contains filtered or unexported fields
}

DailyFileWriter create new log for every day

func (*DailyFileWriter) Write

func (w *DailyFileWriter) Write(p []byte) (n int, err error)

Write implements io.Writer

type FixedSizeFileWriter

type FixedSizeFileWriter struct {
	Name     string
	MaxSize  int64
	MaxCount int
	// contains filtered or unexported fields
}

FixedSizeFileWriter create new log if log size exceed

func (*FixedSizeFileWriter) Write

func (w *FixedSizeFileWriter) Write(p []byte) (n int, err error)

Write implements io.Writer

Jump to

Keyboard shortcuts

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