Documentation
¶
Overview ¶
Package logger defines logging configuration schemas shared with external plugins. The logging implementation and application defaults live in internal/logger.
Index ¶
- Variables
- type JSONFormatConfig
- func (*JSONFormatConfig) Descriptor() ([]byte, []int)deprecated
- func (x *JSONFormatConfig) GetDisableTimestamp() bool
- func (x *JSONFormatConfig) GetTimestampFormat() string
- func (*JSONFormatConfig) ProtoMessage()
- func (x *JSONFormatConfig) ProtoReflect() protoreflect.Message
- func (x *JSONFormatConfig) Reset()
- func (x *JSONFormatConfig) String() string
- type LoggerConfig
- func (*LoggerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LoggerConfig) GetFormatter() string
- func (x *LoggerConfig) GetJsonFormat() *JSONFormatConfig
- func (x *LoggerConfig) GetLevel() string
- func (x *LoggerConfig) GetOutputFile() string
- func (x *LoggerConfig) GetTextFormat() *TextFormatConfig
- func (*LoggerConfig) ProtoMessage()
- func (x *LoggerConfig) ProtoReflect() protoreflect.Message
- func (x *LoggerConfig) Reset()
- func (x *LoggerConfig) String() string
- type TextFormatConfig
- func (*TextFormatConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TextFormatConfig) GetDisableColors() bool
- func (x *TextFormatConfig) GetDisableSorting() bool
- func (x *TextFormatConfig) GetDisableTimestamp() bool
- func (x *TextFormatConfig) GetForceColors() bool
- func (x *TextFormatConfig) GetFullTimestamp() bool
- func (x *TextFormatConfig) GetIndent() string
- func (x *TextFormatConfig) GetTimestampFormat() string
- func (*TextFormatConfig) ProtoMessage()
- func (x *TextFormatConfig) ProtoReflect() protoreflect.Message
- func (x *TextFormatConfig) Reset()
- func (x *TextFormatConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_logger_logger_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type JSONFormatConfig ¶
type JSONFormatConfig struct {
DisableTimestamp bool `protobuf:"varint,1,opt,name=DisableTimestamp,proto3" json:"DisableTimestamp,omitempty"`
TimestampFormat string `protobuf:"bytes,2,opt,name=TimestampFormat,proto3" json:"TimestampFormat,omitempty"`
// contains filtered or unexported fields
}
func (*JSONFormatConfig) Descriptor
deprecated
func (*JSONFormatConfig) Descriptor() ([]byte, []int)
Deprecated: Use JSONFormatConfig.ProtoReflect.Descriptor instead.
func (*JSONFormatConfig) GetDisableTimestamp ¶
func (x *JSONFormatConfig) GetDisableTimestamp() bool
func (*JSONFormatConfig) GetTimestampFormat ¶
func (x *JSONFormatConfig) GetTimestampFormat() string
func (*JSONFormatConfig) ProtoMessage ¶
func (*JSONFormatConfig) ProtoMessage()
func (*JSONFormatConfig) ProtoReflect ¶
func (x *JSONFormatConfig) ProtoReflect() protoreflect.Message
func (*JSONFormatConfig) Reset ¶
func (x *JSONFormatConfig) Reset()
func (*JSONFormatConfig) String ¶
func (x *JSONFormatConfig) String() string
type LoggerConfig ¶
type LoggerConfig struct {
Level string `protobuf:"bytes,1,opt,name=Level,proto3" json:"Level,omitempty"`
Formatter string `protobuf:"bytes,2,opt,name=Formatter,proto3" json:"Formatter,omitempty"`
OutputFile string `protobuf:"bytes,3,opt,name=OutputFile,proto3" json:"OutputFile,omitempty"`
JsonFormat *JSONFormatConfig `protobuf:"bytes,4,opt,name=JsonFormat,proto3" json:"JsonFormat,omitempty"`
TextFormat *TextFormatConfig `protobuf:"bytes,5,opt,name=TextFormat,proto3" json:"TextFormat,omitempty"`
// contains filtered or unexported fields
}
func (*LoggerConfig) Descriptor
deprecated
func (*LoggerConfig) Descriptor() ([]byte, []int)
Deprecated: Use LoggerConfig.ProtoReflect.Descriptor instead.
func (*LoggerConfig) GetFormatter ¶
func (x *LoggerConfig) GetFormatter() string
func (*LoggerConfig) GetJsonFormat ¶
func (x *LoggerConfig) GetJsonFormat() *JSONFormatConfig
func (*LoggerConfig) GetLevel ¶
func (x *LoggerConfig) GetLevel() string
func (*LoggerConfig) GetOutputFile ¶
func (x *LoggerConfig) GetOutputFile() string
func (*LoggerConfig) GetTextFormat ¶
func (x *LoggerConfig) GetTextFormat() *TextFormatConfig
func (*LoggerConfig) ProtoMessage ¶
func (*LoggerConfig) ProtoMessage()
func (*LoggerConfig) ProtoReflect ¶
func (x *LoggerConfig) ProtoReflect() protoreflect.Message
func (*LoggerConfig) Reset ¶
func (x *LoggerConfig) Reset()
func (*LoggerConfig) String ¶
func (x *LoggerConfig) String() string
type TextFormatConfig ¶
type TextFormatConfig struct {
ForceColors bool `protobuf:"varint,1,opt,name=ForceColors,proto3" json:"ForceColors,omitempty"`
DisableColors bool `protobuf:"varint,2,opt,name=DisableColors,proto3" json:"DisableColors,omitempty"`
DisableTimestamp bool `protobuf:"varint,3,opt,name=DisableTimestamp,proto3" json:"DisableTimestamp,omitempty"`
FullTimestamp bool `protobuf:"varint,4,opt,name=FullTimestamp,proto3" json:"FullTimestamp,omitempty"`
TimestampFormat string `protobuf:"bytes,5,opt,name=TimestampFormat,proto3" json:"TimestampFormat,omitempty"`
DisableSorting bool `protobuf:"varint,6,opt,name=DisableSorting,proto3" json:"DisableSorting,omitempty"`
Indent string `protobuf:"bytes,7,opt,name=Indent,proto3" json:"Indent,omitempty"`
// contains filtered or unexported fields
}
func (*TextFormatConfig) Descriptor
deprecated
func (*TextFormatConfig) Descriptor() ([]byte, []int)
Deprecated: Use TextFormatConfig.ProtoReflect.Descriptor instead.
func (*TextFormatConfig) GetDisableColors ¶
func (x *TextFormatConfig) GetDisableColors() bool
func (*TextFormatConfig) GetDisableSorting ¶
func (x *TextFormatConfig) GetDisableSorting() bool
func (*TextFormatConfig) GetDisableTimestamp ¶
func (x *TextFormatConfig) GetDisableTimestamp() bool
func (*TextFormatConfig) GetForceColors ¶
func (x *TextFormatConfig) GetForceColors() bool
func (*TextFormatConfig) GetFullTimestamp ¶
func (x *TextFormatConfig) GetFullTimestamp() bool
func (*TextFormatConfig) GetIndent ¶
func (x *TextFormatConfig) GetIndent() string
func (*TextFormatConfig) GetTimestampFormat ¶
func (x *TextFormatConfig) GetTimestampFormat() string
func (*TextFormatConfig) ProtoMessage ¶
func (*TextFormatConfig) ProtoMessage()
func (*TextFormatConfig) ProtoReflect ¶
func (x *TextFormatConfig) ProtoReflect() protoreflect.Message
func (*TextFormatConfig) Reset ¶
func (x *TextFormatConfig) Reset()
func (*TextFormatConfig) String ¶
func (x *TextFormatConfig) String() string
Click to show internal directories.
Click to hide internal directories.