log

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 105

Documentation

Index

Constants

View Source
const TIMEOUT = time.Second * 10

Variables

View Source
var Log = logging.MustGetLogger("maestro")

Functions

func DisableGreaseLog

func DisableGreaseLog()

func MaestroDebug

func MaestroDebug(a ...interface{})

func MaestroDebugf

func MaestroDebugf(format string, a ...interface{})

func MaestroError

func MaestroError(a ...interface{})

func MaestroErrorf

func MaestroErrorf(format string, a ...interface{})

func MaestroInfo

func MaestroInfo(a ...interface{})

func MaestroInfof

func MaestroInfof(format string, a ...interface{})

func MaestroSuccess

func MaestroSuccess(a ...interface{})

func MaestroSuccessf

func MaestroSuccessf(format string, a ...interface{})

func MaestroWarn

func MaestroWarn(a ...interface{})

func MaestroWarnf

func MaestroWarnf(format string, a ...interface{})

func New_logBufferFifo

func New_logBufferFifo(maxsize uint32) (ret *logBufferFifo)

func SetGoLoggerReady

func SetGoLoggerReady()

func SetLoggingLevel

func SetLoggingLevel(ll string)

func UpdatePrefixedLogger

func UpdatePrefixedLogger(l *PrefixedLogger, s string)

Types

type Client

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

func NewSymphonyClient

func NewSymphonyClient(url string, clientid string, maxBuffers uint32, heartbeatInterval time.Duration) *Client

maxBuffers: this number represents the amount of stored log buffers we will hold before dropping them. This can be from 1 to [max amount of bytes from greasego callback] In effect, this should be close to the same number as NumBanks is set in the target options for the greasego target

func (*Client) Shutdown

func (client *Client) Shutdown()

func (*Client) Start

func (client *Client) Start()

func (*Client) SubmitLogs

func (client *Client) SubmitLogs(data *greasego.TargetCallbackData, godata []byte)

type PrefixedLogger

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

func NewPrefixedLogger

func NewPrefixedLogger(s string) (ret *PrefixedLogger)

func (*PrefixedLogger) Debug

func (this *PrefixedLogger) Debug(a ...interface{})

func (*PrefixedLogger) Debugf

func (this *PrefixedLogger) Debugf(format string, a ...interface{})

func (*PrefixedLogger) Error

func (this *PrefixedLogger) Error(a ...interface{})

func (*PrefixedLogger) Errorf

func (this *PrefixedLogger) Errorf(format string, a ...interface{})

func (*PrefixedLogger) Info

func (this *PrefixedLogger) Info(a ...interface{})

func (*PrefixedLogger) Infof

func (this *PrefixedLogger) Infof(format string, a ...interface{})

func (*PrefixedLogger) Success

func (this *PrefixedLogger) Success(a ...interface{})

func (*PrefixedLogger) Successf

func (this *PrefixedLogger) Successf(format string, a ...interface{})

func (*PrefixedLogger) Warn

func (this *PrefixedLogger) Warn(a ...interface{})

func (*PrefixedLogger) Warnf

func (this *PrefixedLogger) Warnf(format string, a ...interface{})

Jump to

Keyboard shortcuts

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