Documentation ¶
Index ¶
- Variables
- func RegisterHandlerCreator(logType LogType, f HandlerCreator) error
- type Config
- type HandlerCreator
- type HandlerCreatorOptions
- type Instance
- type LogSpecification
- func (*LogSpecification) Descriptor() ([]byte, []int)deprecated
- func (x *LogSpecification) GetLevel() log.Severity
- func (x *LogSpecification) GetPath() string
- func (x *LogSpecification) GetType() LogType
- func (*LogSpecification) ProtoMessage()
- func (x *LogSpecification) ProtoReflect() protoreflect.Message
- func (x *LogSpecification) Reset()
- func (x *LogSpecification) String() string
- type LogType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogType_name = map[int32]string{ 0: "None", 1: "Console", 2: "File", 3: "Event", } LogType_value = map[string]int32{ "None": 0, "Console": 1, "File": 2, "Event": 3, } )
Enum value maps for LogType.
View Source
var File_app_log_config_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHandlerCreator ¶
func RegisterHandlerCreator(logType LogType, f HandlerCreator) error
Types ¶
type Config ¶
type Config struct { Error *LogSpecification `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` Access *LogSpecification `protobuf:"bytes,7,opt,name=access,proto3" json:"access,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAccess ¶
func (x *Config) GetAccess() *LogSpecification
func (*Config) GetError ¶
func (x *Config) GetError() *LogSpecification
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type HandlerCreator ¶
type HandlerCreator func(LogType, HandlerCreatorOptions) (log.Handler, error)
type HandlerCreatorOptions ¶
type HandlerCreatorOptions struct {
Path string
}
type Instance ¶
Instance is a log.Handler that handles logs.
func (*Instance) AddFollower ¶
AddFollower implements log.Follower.
func (*Instance) RemoveFollower ¶
RemoveFollower implements log.Follower.
type LogSpecification ¶
type LogSpecification struct { Type LogType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.log.LogType" json:"type,omitempty"` Level log.Severity `protobuf:"varint,2,opt,name=level,proto3,enum=v2ray.core.common.log.Severity" json:"level,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*LogSpecification) Descriptor
deprecated
func (*LogSpecification) Descriptor() ([]byte, []int)
Deprecated: Use LogSpecification.ProtoReflect.Descriptor instead.
func (*LogSpecification) GetLevel ¶
func (x *LogSpecification) GetLevel() log.Severity
func (*LogSpecification) GetPath ¶
func (x *LogSpecification) GetPath() string
func (*LogSpecification) GetType ¶
func (x *LogSpecification) GetType() LogType
func (*LogSpecification) ProtoMessage ¶
func (*LogSpecification) ProtoMessage()
func (*LogSpecification) ProtoReflect ¶
func (x *LogSpecification) ProtoReflect() protoreflect.Message
func (*LogSpecification) Reset ¶
func (x *LogSpecification) Reset()
func (*LogSpecification) String ¶
func (x *LogSpecification) String() string
type LogType ¶
type LogType int32
func (LogType) Descriptor ¶
func (LogType) Descriptor() protoreflect.EnumDescriptor
func (LogType) EnumDescriptor
deprecated
func (LogType) Number ¶
func (x LogType) Number() protoreflect.EnumNumber
func (LogType) Type ¶
func (LogType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.