Documentation ¶
Index ¶
- Variables
- func RegisterHandlerCreator(logType LogType, f HandlerCreator) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAccessLogPath() string
- func (x *Config) GetAccessLogType() LogType
- func (x *Config) GetEnableDnsLog() bool
- func (x *Config) GetErrorLogLevel() log.Severity
- func (x *Config) GetErrorLogPath() string
- func (x *Config) GetErrorLogType() LogType
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type HandlerCreator
- type HandlerCreatorOptions
- type Instance
- 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 { ErrorLogType LogType `` /* 126-byte string literal not displayed */ ErrorLogLevel log.Severity `` /* 133-byte string literal not displayed */ ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath,proto3" json:"error_log_path,omitempty"` AccessLogType LogType `` /* 129-byte string literal not displayed */ AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"` EnableDnsLog bool `protobuf:"varint,6,opt,name=enable_dns_log,json=enableDnsLog,proto3" json:"enable_dns_log,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAccessLogPath ¶
func (*Config) GetAccessLogType ¶
func (*Config) GetEnableDnsLog ¶
func (*Config) GetErrorLogLevel ¶
func (*Config) GetErrorLogPath ¶
func (*Config) GetErrorLogType ¶
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.
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.