rlog

package
v0.0.0-...-a8cc34e Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: LGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoLog = errors.New("no log")
)

errors

Functions

func Enablelogger

func Enablelogger(path string)

Enablelogger turn on of the remote log

func Fatal

func Fatal(v ...interface{})

Fatal is equivalent to l.Print() followed by a call to os.Exit(1).

func Fatalln

func Fatalln(v ...interface{})

Fatalln is equivalent to l.Println() followed by a call to os.Exit(1).

func Println

func Println(v ...interface{})

Println calls l.Output to print to the logger.

func SetRLogAddress

func SetRLogAddress(address string)

SetRLogAddress sets the addres of the current node

func SetRLogHost

func SetRLogHost(host string)

SetRLogHost sets the host of the remote log

Types

type LogWriter

type LogWriter struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(path string) (*LogWriter, error)

func (*LogWriter) Upload

func (lw *LogWriter) Upload() error

Upload uploads logs to the remote log server

func (*LogWriter) Write

func (lw *LogWriter) Write(bs []byte) (int, error)

Jump to

Keyboard shortcuts

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