Documentation ¶
Overview ¶
Package logutil is a generated protocol buffer package.
It is generated from these files:
logutil.proto
It has these top-level messages:
Time Event
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Level_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
3: "CONSOLE",
}
View Source
var Level_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
"CONSOLE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Time *Time `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"` Level Level `protobuf:"varint,2,opt,name=level,enum=logutil.Level" json:"level,omitempty"` File string `protobuf:"bytes,3,opt,name=file" json:"file,omitempty"` Line int64 `protobuf:"varint,4,opt,name=line" json:"line,omitempty"` Value string `protobuf:"bytes,5,opt,name=value" json:"value,omitempty"` }
Event is a single logging event
func (*Event) Descriptor ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type Time ¶
type Time struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` Nanoseconds int32 `protobuf:"varint,2,opt,name=nanoseconds" json:"nanoseconds,omitempty"` }
Time represents a time stamp in nanoseconds. In go, use logutil library to convert times.
func (*Time) Descriptor ¶
func (*Time) GetNanoseconds ¶
func (*Time) GetSeconds ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.