logging

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package logging is a generated protocol buffer package.

It is generated from these files:

utils/logging/types.proto

It has these top-level messages:

Record

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes   = fmt.Errorf("proto: integer overflow")
)

Functions

func LogReceiver

func LogReceiver(ctx context.Context, secret *memguard.LockedBuffer, l log15.Logger, connections []*net.UnixConn) *sync.WaitGroup

func NewRemoteLogger

func NewRemoteLogger(ctx context.Context, remote *net.UnixConn, secret *memguard.LockedBuffer) log15.Logger

func SetupLogging

func SetupLogging(logger log15.Logger, level string, logJson bool, logSyslog bool, filename string) (log15.Logger, error)

Types

type Record

type Record struct {
	Time int64             `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	Lvl  int32             `protobuf:"varint,2,opt,name=lvl,proto3" json:"lvl,omitempty"`
	Msg  string            `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	Ctx  map[string]string `` /* 130-byte string literal not displayed */
}

func (*Record) Descriptor

func (*Record) Descriptor() ([]byte, []int)

func (*Record) Equal

func (this *Record) Equal(that interface{}) bool

func (*Record) GetCtx

func (m *Record) GetCtx() map[string]string

func (*Record) GetLvl

func (m *Record) GetLvl() int32

func (*Record) GetMsg

func (m *Record) GetMsg() string

func (*Record) GetTime

func (m *Record) GetTime() int64

func (*Record) GoString

func (this *Record) GoString() string

func (*Record) Marshal

func (m *Record) Marshal() (dAtA []byte, err error)

func (*Record) MarshalTo

func (m *Record) MarshalTo(dAtA []byte) (int, error)

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

func (m *Record) Size() (n int)

func (*Record) String

func (this *Record) String() string

func (*Record) Unmarshal

func (m *Record) Unmarshal(dAtA []byte) error

type RemoteLoggerHandler

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

func (*RemoteLoggerHandler) Close

func (h *RemoteLoggerHandler) Close() error

func (*RemoteLoggerHandler) Log

Jump to

Keyboard shortcuts

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