logutil

package
Version: v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Event) GetFile

func (m *Event) GetFile() string

func (*Event) GetLevel

func (m *Event) GetLevel() Level

func (*Event) GetLine

func (m *Event) GetLine() int64

func (*Event) GetTime

func (m *Event) GetTime() *Time

func (*Event) GetValue

func (m *Event) GetValue() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *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) EnumDescriptor

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

func (Level) String

func (x Level) String() string

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) Descriptor() ([]byte, []int)

func (*Time) GetNanoseconds

func (m *Time) GetNanoseconds() int32

func (*Time) GetSeconds

func (m *Time) GetSeconds() int64

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) String

func (m *Time) String() string

Source Files

Jump to

Keyboard shortcuts

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