log

package
v0.3.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogLevel_name = map[int32]string{
		0: "verbose",
		1: "debug",
		2: "info",
		3: "warning",
		4: "error",
		5: "fatal",
	}
	LogLevel_value = map[string]int32{
		"verbose": 0,
		"debug":   1,
		"info":    2,
		"warning": 3,
		"error":   4,
		"fatal":   5,
	}
)

Enum value maps for LogLevel.

View Source
var File_config_log_log_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LogLevel

type LogLevel int32
const (
	LogLevel_verbose LogLevel = 0
	LogLevel_debug   LogLevel = 1
	LogLevel_info    LogLevel = 2
	LogLevel_warning LogLevel = 3
	LogLevel_error   LogLevel = 4
	LogLevel_fatal   LogLevel = 5
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

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

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type Logcat

type Logcat struct {
	Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=yuhaiin.log.LogLevel" json:"level,omitempty"`
	Save  bool     `protobuf:"varint,2,opt,name=save,proto3" json:"save,omitempty"`
	// contains filtered or unexported fields
}

func (*Logcat) Descriptor deprecated

func (*Logcat) Descriptor() ([]byte, []int)

Deprecated: Use Logcat.ProtoReflect.Descriptor instead.

func (*Logcat) GetLevel

func (x *Logcat) GetLevel() LogLevel

func (*Logcat) GetSave

func (x *Logcat) GetSave() bool

func (*Logcat) ProtoMessage

func (*Logcat) ProtoMessage()

func (*Logcat) ProtoReflect

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

func (*Logcat) Reset

func (x *Logcat) Reset()

func (*Logcat) String

func (x *Logcat) String() string

Jump to

Keyboard shortcuts

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