dev

package
v1.36.10-2025072813344... 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_dev_logutil_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

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

func (x *Event) ClearTime()

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() *dev.Time

func (*Event) GetValue

func (x *Event) GetValue() string

func (*Event) HasTime

func (x *Event) HasTime() bool

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SetFile

func (x *Event) SetFile(v string)

func (*Event) SetLevel

func (x *Event) SetLevel(v Level)

func (*Event) SetLine

func (x *Event) SetLine(v int64)

func (*Event) SetTime

func (x *Event) SetTime(v *dev.Time)

func (*Event) SetValue

func (x *Event) SetValue(v string)

func (*Event) String

func (x *Event) String() string

type Event_builder

type Event_builder struct {
	Time  *dev.Time
	Level Level
	File  string
	Line  int64
	Value string
	// contains filtered or unexported fields
}

func (Event_builder) Build

func (b0 Event_builder) Build() *Event

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) Number

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

func (Level) Type

func (Level) Type() protoreflect.EnumType

Source Files

  • logutil.pb.go

Jump to

Keyboard shortcuts

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