Documentation
¶
Index ¶
- Variables
- type Event
- func (x *Event) ClearTime()
- func (x *Event) GetFile() string
- func (x *Event) GetLevel() Level
- func (x *Event) GetLine() int64
- func (x *Event) GetTime() *dev.Time
- func (x *Event) GetValue() string
- func (x *Event) HasTime() bool
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) SetFile(v string)
- func (x *Event) SetLevel(v Level)
- func (x *Event) SetLine(v int64)
- func (x *Event) SetTime(v *dev.Time)
- func (x *Event) SetValue(v string)
- func (x *Event) String() string
- type Event_builder
- type Level
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) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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.
func (Level) Descriptor ¶
func (Level) Descriptor() protoreflect.EnumDescriptor
func (Level) Number ¶
func (x Level) Number() protoreflect.EnumNumber
func (Level) Type ¶
func (Level) Type() protoreflect.EnumType
Source Files
¶
- logutil.pb.go
Click to show internal directories.
Click to hide internal directories.