Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Theme ¶
type Theme struct { Source []color.FgBgTuple `yaml:"source"` Timestamp color.FgBgTuple `yaml:"timestamp"` Application color.FgBgTuple `yaml:"application"` Context color.FgBgTuple `yaml:"context"` Entity color.FgBgTuple `yaml:"entity"` ActionDelimiter color.FgBgTuple `yaml:"action_delimiter"` Action color.FgBgTuple `yaml:"action"` LineDelimiter color.FgBgTuple `yaml:"line_delimiter"` Line color.FgBgTuple `yaml:"line"` Level map[level.Level]color.FgBgTuple `yaml:"level"` Message map[level.Level]color.FgBgTuple `yaml:"message"` }
Theme ...
func (*Theme) AsHexPair ¶
AsHexPair returns a color for a source. When consistentColors is true, sources will get the same color across invocations of the application. Otherwise, the color selection randomized for each run.
func (*Theme) AsPrettyJSONStyle ¶
AsPrettyJSONStyle ...
Click to show internal directories.
Click to hide internal directories.