file

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 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 Writer

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

Writer implements the log.Writer interface. It performs logging into a single log.file

func NewWriter

func NewWriter(path string) (*Writer, error)

NewWriter creates a new file.Writer

func (*Writer) Close

func (w *Writer) Close()

Close closes the associated file

func (*Writer) Write

func (w *Writer) Write(e entry.Entry)

Write writes an entry to the file

Jump to

Keyboard shortcuts

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