log

package
v0.4.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatLogPath

func FormatLogPath(p, rootPath string) string

FormatLogPath formats the path the log file.

Types

type Log

type Log struct {
	Name string
	Path string
	// contains filtered or unexported fields
}

Log represents the log of a service. It supports streaming of the contents of the log file by way of implementing the chunker.Chunker interface.

func New

func New(name, rootPath string) (*Log, error)

New initializes and registers a log for a service.

func (*Log) Close

func (l *Log) Close() error

Close implements io.WriteCloser.

func (*Log) Write

func (l *Log) Write(p []byte) (n int, err error)

Write implements io.WriteCloser.

Jump to

Keyboard shortcuts

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