logutilv18

package
v1.33.0-20231211191728... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

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 File_vitess_logutil_v18_logutil_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	Time  *v18.Time `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Level Level     `protobuf:"varint,2,opt,name=level,proto3,enum=vitess.logutil.v18.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() *v18.Time

func (*Event) GetValue

func (x *Event) GetValue() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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

func (Level) Descriptor() protoreflect.EnumDescriptor

func (Level) Enum

func (x Level) Enum() *Level

func (Level) EnumDescriptor deprecated

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

Deprecated: Use Level.Descriptor instead.

func (Level) Number

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

func (Level) Type

func (Level) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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