logging

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logging

type Logging struct {
	// Debug receives log messages in verbose mode
	Debug *golog.Logger
	// Log is the standard logger
	Log *golog.Logger
}

Logging holds a configured Quartermaster logger

func Setup

func Setup(verbose bool) Logging

Setup sets up logging

type RemoteLogWriter

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

RemoteLogWriter can be used as logger sink that sends the log messages to the server

func NewRemoteLogWriter

func NewRemoteLogWriter(bsc pb.ControlServiceClient) *RemoteLogWriter

func (*RemoteLogWriter) Write

func (rlw *RemoteLogWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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