logutil

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Level_name = map[int32]string{
		0: "INFO",
		1: "WARNING",
		2: "ERROR",
		3: "CONSOLE",
	}
	Level_value = map[string]int32{
		"INFO":    0,
		"WARNING": 1,
		"ERROR":   2,
		"CONSOLE": 3,
	}
)

Enum value maps for Level.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_logutil_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	Time  *vttime.Time `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Level Level        `protobuf:"varint,2,opt,name=level,proto3,enum=logutil.Level" json:"level,omitempty"`
	File  string       `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	Line  int64        `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`
	Value string       `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Event is a single logging event

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetFile

func (x *Event) GetFile() string

func (*Event) GetLevel

func (x *Event) GetLevel() Level

func (*Event) GetLine

func (x *Event) GetLine() int64

func (*Event) GetTime

func (x *Event) GetTime() *vttime.Time

func (*Event) GetValue

func (x *Event) GetValue() string

func (*Event) MarshalToSizedBufferVT added in v0.11.0

func (m *Event) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Event) MarshalToVT added in v0.11.0

func (m *Event) MarshalToVT(dAtA []byte) (int, error)

func (*Event) MarshalVT added in v0.11.0

func (m *Event) MarshalVT() (dAtA []byte, err error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect added in v0.11.0

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SizeVT added in v0.11.0

func (m *Event) SizeVT() (n int)

func (*Event) String

func (x *Event) String() string

func (*Event) UnmarshalVT added in v0.11.0

func (m *Event) UnmarshalVT(dAtA []byte) error

type Level

type Level int32

Level is the level of the log messages.

const (
	// The usual logging levels.
	// Should be logged using logging facility.
	Level_INFO    Level = 0
	Level_WARNING Level = 1
	Level_ERROR   Level = 2
	// For messages that may contains non-logging events.
	// Should be logged to console directly.
	Level_CONSOLE Level = 3
)

func (Level) Descriptor added in v0.11.0

func (Level) Descriptor() protoreflect.EnumDescriptor

func (Level) Enum added in v0.11.0

func (x Level) Enum() *Level

func (Level) EnumDescriptor deprecated

func (Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use Level.Descriptor instead.

func (Level) Number added in v0.11.0

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

func (Level) Type added in v0.11.0

func (Level) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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