Documentation
¶
Index ¶
- Variables
- type Logger
- func (*Logger) Descriptor() ([]byte, []int)deprecated
- func (x *Logger) GetCallerSkip() uint32
- func (x *Logger) GetDefault() bool
- func (x *Logger) GetDevLogger() *Logger_DevLogger
- func (x *Logger) GetDevelop() bool
- func (x *Logger) GetDisableCaller() bool
- func (x *Logger) GetDisabled() bool
- func (x *Logger) GetFile() *Logger_File
- func (x *Logger) GetFormat() string
- func (x *Logger) GetLevel() string
- func (x *Logger) GetName() string
- func (x *Logger) GetStdout() bool
- func (x *Logger) GetTimeFormat() string
- func (*Logger) ProtoMessage()
- func (x *Logger) ProtoReflect() protoreflect.Message
- func (x *Logger) Reset()
- func (x *Logger) String() string
- func (m *Logger) Validate() error
- func (m *Logger) ValidateAll() error
- type LoggerHookMessage
- func (*LoggerHookMessage) Descriptor() ([]byte, []int)deprecated
- func (x *LoggerHookMessage) GetError() string
- func (x *LoggerHookMessage) GetFields() map[string]string
- func (x *LoggerHookMessage) GetLevel() string
- func (x *LoggerHookMessage) GetMessage() string
- func (x *LoggerHookMessage) GetStacktrace() string
- func (*LoggerHookMessage) ProtoMessage()
- func (x *LoggerHookMessage) ProtoReflect() protoreflect.Message
- func (x *LoggerHookMessage) Reset()
- func (x *LoggerHookMessage) String() string
- func (m *LoggerHookMessage) Validate() error
- func (m *LoggerHookMessage) ValidateAll() error
- type LoggerHookMessageMultiError
- type LoggerHookMessageValidationError
- func (e LoggerHookMessageValidationError) Cause() error
- func (e LoggerHookMessageValidationError) Error() string
- func (e LoggerHookMessageValidationError) ErrorName() string
- func (e LoggerHookMessageValidationError) Field() string
- func (e LoggerHookMessageValidationError) Key() bool
- func (e LoggerHookMessageValidationError) Reason() string
- type LoggerLevel
- func (LoggerLevel) Descriptor() protoreflect.EnumDescriptor
- func (x LoggerLevel) Enum() *LoggerLevel
- func (LoggerLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoggerLevel) Number() protoreflect.EnumNumber
- func (x LoggerLevel) String() string
- func (LoggerLevel) Type() protoreflect.EnumType
- type LoggerMultiError
- type LoggerValidationError
- type Logger_DevLogger
- func (*Logger_DevLogger) Descriptor() ([]byte, []int)deprecated
- func (x *Logger_DevLogger) GetDebugColor() uint32
- func (x *Logger_DevLogger) GetErrorColor() uint32
- func (x *Logger_DevLogger) GetFormatter() bool
- func (x *Logger_DevLogger) GetIndent() bool
- func (x *Logger_DevLogger) GetInfoColor() uint32
- func (x *Logger_DevLogger) GetMaxSlice() uint32
- func (x *Logger_DevLogger) GetMaxTrace() uint32
- func (x *Logger_DevLogger) GetNewline() bool
- func (x *Logger_DevLogger) GetSortKeys() bool
- func (x *Logger_DevLogger) GetWarnColor() uint32
- func (*Logger_DevLogger) ProtoMessage()
- func (x *Logger_DevLogger) ProtoReflect() protoreflect.Message
- func (x *Logger_DevLogger) Reset()
- func (x *Logger_DevLogger) String() string
- func (m *Logger_DevLogger) Validate() error
- func (m *Logger_DevLogger) ValidateAll() error
- type Logger_DevLoggerMultiError
- type Logger_DevLoggerValidationError
- func (e Logger_DevLoggerValidationError) Cause() error
- func (e Logger_DevLoggerValidationError) Error() string
- func (e Logger_DevLoggerValidationError) ErrorName() string
- func (e Logger_DevLoggerValidationError) Field() string
- func (e Logger_DevLoggerValidationError) Key() bool
- func (e Logger_DevLoggerValidationError) Reason() string
- type Logger_File
- func (*Logger_File) Descriptor() ([]byte, []int)deprecated
- func (x *Logger_File) GetCompress() bool
- func (x *Logger_File) GetLocalTime() bool
- func (x *Logger_File) GetLumberjack() bool
- func (x *Logger_File) GetMaxAge() int32
- func (x *Logger_File) GetMaxBackups() int32
- func (x *Logger_File) GetMaxSize() int32
- func (x *Logger_File) GetPath() string
- func (*Logger_File) ProtoMessage()
- func (x *Logger_File) ProtoReflect() protoreflect.Message
- func (x *Logger_File) Reset()
- func (x *Logger_File) String() string
- func (m *Logger_File) Validate() error
- func (m *Logger_File) ValidateAll() error
- type Logger_FileMultiError
- type Logger_FileValidationError
- func (e Logger_FileValidationError) Cause() error
- func (e Logger_FileValidationError) Error() string
- func (e Logger_FileValidationError) ErrorName() string
- func (e Logger_FileValidationError) Field() string
- func (e Logger_FileValidationError) Key() bool
- func (e Logger_FileValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( LoggerLevel_name = map[int32]string{ 0: "LOGGER_LEVEL_UNSPECIFIED", 1: "LOGGER_LEVEL_DEBUG", 2: "LOGGER_LEVEL_INFO", 3: "LOGGER_LEVEL_WARN", 4: "LOGGER_LEVEL_ERROR", 5: "LOGGER_LEVEL_FATAL", } LoggerLevel_value = map[string]int32{ "LOGGER_LEVEL_UNSPECIFIED": 0, "LOGGER_LEVEL_DEBUG": 1, "LOGGER_LEVEL_INFO": 2, "LOGGER_LEVEL_WARN": 3, "LOGGER_LEVEL_ERROR": 4, "LOGGER_LEVEL_FATAL": 5, } )
Enum value maps for LoggerLevel.
var File_runtime_logger_v1_logger_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// Disable logger
Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Enable dev logger output
Develop bool `protobuf:"varint,2,opt,name=develop,proto3" json:"develop,omitempty"`
// Set default logger
Default bool `protobuf:"varint,3,opt,name=default,proto3" json:"default,omitempty"`
// Logger name
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Logger format json text or tint
Format string `protobuf:"bytes,5,opt,name=format,proto3" json:"format,omitempty"`
// Logger level
Level string `protobuf:"bytes,6,opt,name=level,proto3" json:"level,omitempty"`
// Logger output stdout
Stdout bool `protobuf:"varint,7,opt,name=stdout,proto3" json:"stdout,omitempty"`
// Disable logger caller
DisableCaller bool `protobuf:"varint,8,opt,name=disable_caller,proto3" json:"disable_caller,omitempty"`
// Logger caller skip
CallerSkip uint32 `protobuf:"varint,9,opt,name=caller_skip,proto3" json:"caller_skip,omitempty"`
// Logger time format
TimeFormat string `protobuf:"bytes,10,opt,name=time_format,proto3" json:"time_format,omitempty"`
// Logger file output logger
File *Logger_File `protobuf:"bytes,100,opt,name=file,proto3" json:"file,omitempty"`
// Logger dev logger logger
DevLogger *Logger_DevLogger `protobuf:"bytes,101,opt,name=dev_logger,proto3" json:"dev_logger,omitempty"` //DevLogger
// contains filtered or unexported fields
}
Logger
func (*Logger) Descriptor
deprecated
func (*Logger) GetCallerSkip ¶
func (*Logger) GetDefault ¶
func (*Logger) GetDevLogger ¶
func (x *Logger) GetDevLogger() *Logger_DevLogger
func (*Logger) GetDevelop ¶
func (*Logger) GetDisableCaller ¶
func (*Logger) GetDisabled ¶
func (*Logger) GetFile ¶
func (x *Logger) GetFile() *Logger_File
func (*Logger) GetTimeFormat ¶
func (*Logger) ProtoMessage ¶
func (*Logger) ProtoMessage()
func (*Logger) ProtoReflect ¶
func (x *Logger) ProtoReflect() protoreflect.Message
func (*Logger) Validate ¶
Validate checks the field values on Logger with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Logger) ValidateAll ¶
ValidateAll checks the field values on Logger with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoggerMultiError, or nil if none found.
type LoggerHookMessage ¶
type LoggerHookMessage struct {
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Stacktrace string `protobuf:"bytes,3,opt,name=stacktrace,proto3" json:"stacktrace,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
Fields map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Logger hook message
func (*LoggerHookMessage) Descriptor
deprecated
func (*LoggerHookMessage) Descriptor() ([]byte, []int)
Deprecated: Use LoggerHookMessage.ProtoReflect.Descriptor instead.
func (*LoggerHookMessage) GetError ¶
func (x *LoggerHookMessage) GetError() string
func (*LoggerHookMessage) GetFields ¶
func (x *LoggerHookMessage) GetFields() map[string]string
func (*LoggerHookMessage) GetLevel ¶
func (x *LoggerHookMessage) GetLevel() string
func (*LoggerHookMessage) GetMessage ¶
func (x *LoggerHookMessage) GetMessage() string
func (*LoggerHookMessage) GetStacktrace ¶
func (x *LoggerHookMessage) GetStacktrace() string
func (*LoggerHookMessage) ProtoMessage ¶
func (*LoggerHookMessage) ProtoMessage()
func (*LoggerHookMessage) ProtoReflect ¶
func (x *LoggerHookMessage) ProtoReflect() protoreflect.Message
func (*LoggerHookMessage) Reset ¶
func (x *LoggerHookMessage) Reset()
func (*LoggerHookMessage) String ¶
func (x *LoggerHookMessage) String() string
func (*LoggerHookMessage) Validate ¶
func (m *LoggerHookMessage) Validate() error
Validate checks the field values on LoggerHookMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoggerHookMessage) ValidateAll ¶
func (m *LoggerHookMessage) ValidateAll() error
ValidateAll checks the field values on LoggerHookMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoggerHookMessageMultiError, or nil if none found.
type LoggerHookMessageMultiError ¶
type LoggerHookMessageMultiError []error
LoggerHookMessageMultiError is an error wrapping multiple validation errors returned by LoggerHookMessage.ValidateAll() if the designated constraints aren't met.
func (LoggerHookMessageMultiError) AllErrors ¶
func (m LoggerHookMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoggerHookMessageMultiError) Error ¶
func (m LoggerHookMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoggerHookMessageValidationError ¶
type LoggerHookMessageValidationError struct {
// contains filtered or unexported fields
}
LoggerHookMessageValidationError is the validation error returned by LoggerHookMessage.Validate if the designated constraints aren't met.
func (LoggerHookMessageValidationError) Cause ¶
func (e LoggerHookMessageValidationError) Cause() error
Cause function returns cause value.
func (LoggerHookMessageValidationError) Error ¶
func (e LoggerHookMessageValidationError) Error() string
Error satisfies the builtin error interface
func (LoggerHookMessageValidationError) ErrorName ¶
func (e LoggerHookMessageValidationError) ErrorName() string
ErrorName returns error name.
func (LoggerHookMessageValidationError) Field ¶
func (e LoggerHookMessageValidationError) Field() string
Field function returns field value.
func (LoggerHookMessageValidationError) Key ¶
func (e LoggerHookMessageValidationError) Key() bool
Key function returns key value.
func (LoggerHookMessageValidationError) Reason ¶
func (e LoggerHookMessageValidationError) Reason() string
Reason function returns reason value.
type LoggerLevel ¶
type LoggerLevel int32
Logger level
const ( LoggerLevel_LOGGER_LEVEL_UNSPECIFIED LoggerLevel = 0 LoggerLevel_LOGGER_LEVEL_DEBUG LoggerLevel = 1 LoggerLevel_LOGGER_LEVEL_INFO LoggerLevel = 2 LoggerLevel_LOGGER_LEVEL_WARN LoggerLevel = 3 LoggerLevel_LOGGER_LEVEL_ERROR LoggerLevel = 4 LoggerLevel_LOGGER_LEVEL_FATAL LoggerLevel = 5 )
func (LoggerLevel) Descriptor ¶
func (LoggerLevel) Descriptor() protoreflect.EnumDescriptor
func (LoggerLevel) Enum ¶
func (x LoggerLevel) Enum() *LoggerLevel
func (LoggerLevel) EnumDescriptor
deprecated
func (LoggerLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoggerLevel.Descriptor instead.
func (LoggerLevel) Number ¶
func (x LoggerLevel) Number() protoreflect.EnumNumber
func (LoggerLevel) String ¶
func (x LoggerLevel) String() string
func (LoggerLevel) Type ¶
func (LoggerLevel) Type() protoreflect.EnumType
type LoggerMultiError ¶
type LoggerMultiError []error
LoggerMultiError is an error wrapping multiple validation errors returned by Logger.ValidateAll() if the designated constraints aren't met.
func (LoggerMultiError) AllErrors ¶
func (m LoggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoggerMultiError) Error ¶
func (m LoggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoggerValidationError ¶
type LoggerValidationError struct {
// contains filtered or unexported fields
}
LoggerValidationError is the validation error returned by Logger.Validate if the designated constraints aren't met.
func (LoggerValidationError) Cause ¶
func (e LoggerValidationError) Cause() error
Cause function returns cause value.
func (LoggerValidationError) Error ¶
func (e LoggerValidationError) Error() string
Error satisfies the builtin error interface
func (LoggerValidationError) ErrorName ¶
func (e LoggerValidationError) ErrorName() string
ErrorName returns error name.
func (LoggerValidationError) Field ¶
func (e LoggerValidationError) Field() string
Field function returns field value.
func (LoggerValidationError) Key ¶
func (e LoggerValidationError) Key() bool
Key function returns key value.
func (LoggerValidationError) Reason ¶
func (e LoggerValidationError) Reason() string
Reason function returns reason value.
type Logger_DevLogger ¶
type Logger_DevLogger struct {
MaxSlice uint32 `protobuf:"varint,1,opt,name=max_slice,proto3" json:"max_slice,omitempty"`
SortKeys bool `protobuf:"varint,2,opt,name=sort_keys,proto3" json:"sort_keys,omitempty"`
Newline bool `protobuf:"varint,3,opt,name=newline,proto3" json:"newline,omitempty"`
Indent bool `protobuf:"varint,4,opt,name=indent,proto3" json:"indent,omitempty"`
DebugColor uint32 `protobuf:"varint,5,opt,name=debug_color,proto3" json:"debug_color,omitempty"`
InfoColor uint32 `protobuf:"varint,6,opt,name=info_color,proto3" json:"info_color,omitempty"`
WarnColor uint32 `protobuf:"varint,7,opt,name=warn_color,proto3" json:"warn_color,omitempty"`
ErrorColor uint32 `protobuf:"varint,8,opt,name=error_color,proto3" json:"error_color,omitempty"`
MaxTrace uint32 `protobuf:"varint,9,opt,name=max_trace,proto3" json:"max_trace,omitempty"`
Formatter bool `protobuf:"varint,10,opt,name=formatter,proto3" json:"formatter,omitempty"`
// contains filtered or unexported fields
}
Dev logger
func (*Logger_DevLogger) Descriptor
deprecated
func (*Logger_DevLogger) Descriptor() ([]byte, []int)
Deprecated: Use Logger_DevLogger.ProtoReflect.Descriptor instead.
func (*Logger_DevLogger) GetDebugColor ¶
func (x *Logger_DevLogger) GetDebugColor() uint32
func (*Logger_DevLogger) GetErrorColor ¶
func (x *Logger_DevLogger) GetErrorColor() uint32
func (*Logger_DevLogger) GetFormatter ¶
func (x *Logger_DevLogger) GetFormatter() bool
func (*Logger_DevLogger) GetIndent ¶
func (x *Logger_DevLogger) GetIndent() bool
func (*Logger_DevLogger) GetInfoColor ¶
func (x *Logger_DevLogger) GetInfoColor() uint32
func (*Logger_DevLogger) GetMaxSlice ¶
func (x *Logger_DevLogger) GetMaxSlice() uint32
func (*Logger_DevLogger) GetMaxTrace ¶
func (x *Logger_DevLogger) GetMaxTrace() uint32
func (*Logger_DevLogger) GetNewline ¶
func (x *Logger_DevLogger) GetNewline() bool
func (*Logger_DevLogger) GetSortKeys ¶
func (x *Logger_DevLogger) GetSortKeys() bool
func (*Logger_DevLogger) GetWarnColor ¶
func (x *Logger_DevLogger) GetWarnColor() uint32
func (*Logger_DevLogger) ProtoMessage ¶
func (*Logger_DevLogger) ProtoMessage()
func (*Logger_DevLogger) ProtoReflect ¶
func (x *Logger_DevLogger) ProtoReflect() protoreflect.Message
func (*Logger_DevLogger) Reset ¶
func (x *Logger_DevLogger) Reset()
func (*Logger_DevLogger) String ¶
func (x *Logger_DevLogger) String() string
func (*Logger_DevLogger) Validate ¶
func (m *Logger_DevLogger) Validate() error
Validate checks the field values on Logger_DevLogger with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Logger_DevLogger) ValidateAll ¶
func (m *Logger_DevLogger) ValidateAll() error
ValidateAll checks the field values on Logger_DevLogger with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_DevLoggerMultiError, or nil if none found.
type Logger_DevLoggerMultiError ¶
type Logger_DevLoggerMultiError []error
Logger_DevLoggerMultiError is an error wrapping multiple validation errors returned by Logger_DevLogger.ValidateAll() if the designated constraints aren't met.
func (Logger_DevLoggerMultiError) AllErrors ¶
func (m Logger_DevLoggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Logger_DevLoggerMultiError) Error ¶
func (m Logger_DevLoggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Logger_DevLoggerValidationError ¶
type Logger_DevLoggerValidationError struct {
// contains filtered or unexported fields
}
Logger_DevLoggerValidationError is the validation error returned by Logger_DevLogger.Validate if the designated constraints aren't met.
func (Logger_DevLoggerValidationError) Cause ¶
func (e Logger_DevLoggerValidationError) Cause() error
Cause function returns cause value.
func (Logger_DevLoggerValidationError) Error ¶
func (e Logger_DevLoggerValidationError) Error() string
Error satisfies the builtin error interface
func (Logger_DevLoggerValidationError) ErrorName ¶
func (e Logger_DevLoggerValidationError) ErrorName() string
ErrorName returns error name.
func (Logger_DevLoggerValidationError) Field ¶
func (e Logger_DevLoggerValidationError) Field() string
Field function returns field value.
func (Logger_DevLoggerValidationError) Key ¶
func (e Logger_DevLoggerValidationError) Key() bool
Key function returns key value.
func (Logger_DevLoggerValidationError) Reason ¶
func (e Logger_DevLoggerValidationError) Reason() string
Reason function returns reason value.
type Logger_File ¶
type Logger_File struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Lumberjack bool `protobuf:"varint,2,opt,name=lumberjack,proto3" json:"lumberjack,omitempty"`
Compress bool `protobuf:"varint,3,opt,name=compress,proto3" json:"compress,omitempty"`
LocalTime bool `protobuf:"varint,4,opt,name=local_time,proto3" json:"local_time,omitempty"`
MaxSize int32 `protobuf:"varint,5,opt,name=max_size,proto3" json:"max_size,omitempty"`
MaxAge int32 `protobuf:"varint,6,opt,name=max_age,proto3" json:"max_age,omitempty"`
MaxBackups int32 `protobuf:"varint,7,opt,name=max_backups,proto3" json:"max_backups,omitempty"`
// contains filtered or unexported fields
}
Logger file
func (*Logger_File) Descriptor
deprecated
func (*Logger_File) Descriptor() ([]byte, []int)
Deprecated: Use Logger_File.ProtoReflect.Descriptor instead.
func (*Logger_File) GetCompress ¶
func (x *Logger_File) GetCompress() bool
func (*Logger_File) GetLocalTime ¶
func (x *Logger_File) GetLocalTime() bool
func (*Logger_File) GetLumberjack ¶
func (x *Logger_File) GetLumberjack() bool
func (*Logger_File) GetMaxAge ¶
func (x *Logger_File) GetMaxAge() int32
func (*Logger_File) GetMaxBackups ¶
func (x *Logger_File) GetMaxBackups() int32
func (*Logger_File) GetMaxSize ¶
func (x *Logger_File) GetMaxSize() int32
func (*Logger_File) GetPath ¶
func (x *Logger_File) GetPath() string
func (*Logger_File) ProtoMessage ¶
func (*Logger_File) ProtoMessage()
func (*Logger_File) ProtoReflect ¶
func (x *Logger_File) ProtoReflect() protoreflect.Message
func (*Logger_File) Reset ¶
func (x *Logger_File) Reset()
func (*Logger_File) String ¶
func (x *Logger_File) String() string
func (*Logger_File) Validate ¶
func (m *Logger_File) Validate() error
Validate checks the field values on Logger_File with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Logger_File) ValidateAll ¶
func (m *Logger_File) ValidateAll() error
ValidateAll checks the field values on Logger_File with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_FileMultiError, or nil if none found.
type Logger_FileMultiError ¶
type Logger_FileMultiError []error
Logger_FileMultiError is an error wrapping multiple validation errors returned by Logger_File.ValidateAll() if the designated constraints aren't met.
func (Logger_FileMultiError) AllErrors ¶
func (m Logger_FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Logger_FileMultiError) Error ¶
func (m Logger_FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Logger_FileValidationError ¶
type Logger_FileValidationError struct {
// contains filtered or unexported fields
}
Logger_FileValidationError is the validation error returned by Logger_File.Validate if the designated constraints aren't met.
func (Logger_FileValidationError) Cause ¶
func (e Logger_FileValidationError) Cause() error
Cause function returns cause value.
func (Logger_FileValidationError) Error ¶
func (e Logger_FileValidationError) Error() string
Error satisfies the builtin error interface
func (Logger_FileValidationError) ErrorName ¶
func (e Logger_FileValidationError) ErrorName() string
ErrorName returns error name.
func (Logger_FileValidationError) Field ¶
func (e Logger_FileValidationError) Field() string
Field function returns field value.
func (Logger_FileValidationError) Key ¶
func (e Logger_FileValidationError) Key() bool
Key function returns key value.
func (Logger_FileValidationError) Reason ¶
func (e Logger_FileValidationError) Reason() string
Reason function returns reason value.