Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogLevelFlag = "log-level" LogFormatFlag = "log-format" LevelTrace = slog.Level(-5) )
Variables ¶
This section is empty.
Functions ¶
func InitLogCmd ¶ added in v1.9.5
func LogFormatStrings ¶ added in v1.9.5
func LogFormatStrings() []string
LogFormatStrings returns a slice of all String values of the enum
func RegisterLogFlags ¶
Types ¶
type LogFormat ¶ added in v1.9.5
type LogFormat uint8
func LogFormatString ¶ added in v1.9.5
LogFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func LogFormatValues ¶ added in v1.9.5
func LogFormatValues() []LogFormat
LogFormatValues returns all values of the enum
func (LogFormat) IsALogFormat ¶ added in v1.9.5
IsALogFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (LogFormat) MarshalText ¶ added in v1.9.5
MarshalText implements the encoding.TextMarshaler interface for LogFormat
func (*LogFormat) UnmarshalText ¶ added in v1.9.5
UnmarshalText implements the encoding.TextUnmarshaler interface for LogFormat
Click to show internal directories.
Click to hide internal directories.