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 ¶
- Variables
- func LogReceiver(ctx context.Context, secret *memguard.LockedBuffer, l log15.Logger, ...) *sync.WaitGroup
- func NewRemoteLogger(ctx context.Context, remote *net.UnixConn, secret *memguard.LockedBuffer) log15.Logger
- func SetupLogging(logger log15.Logger, level string, logJson bool, logSyslog bool, ...) (log15.Logger, error)
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (this *Record) Equal(that interface{}) bool
- func (m *Record) GetCtx() map[string]string
- func (m *Record) GetLvl() int32
- func (m *Record) GetMsg() string
- func (m *Record) GetTime() int64
- func (this *Record) GoString() string
- func (m *Record) Marshal() (dAtA []byte, err error)
- func (m *Record) MarshalTo(dAtA []byte) (int, error)
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) Size() (n int)
- func (this *Record) String() string
- func (m *Record) Unmarshal(dAtA []byte) error
- type RemoteLoggerHandler
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 NewRemoteLogger ¶
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) ProtoMessage ¶
func (*Record) ProtoMessage()
type RemoteLoggerHandler ¶
type RemoteLoggerHandler struct {
// contains filtered or unexported fields
}
func (*RemoteLoggerHandler) Close ¶
func (h *RemoteLoggerHandler) Close() error
Click to show internal directories.
Click to hide internal directories.