Versions in this module Expand all Collapse all v0 v0.1.1 Mar 3, 2024 v0.1.0 Mar 3, 2024 Changes in this version + var Blue = "\033[34m" + var CmdOptions struct + var Cyan = "\033[36m" + var Gray = "\033[90m" + var Green = "\033[32m" + var LevelColors = map[int]string + var Magenta = "\033[35m" + var Red = "\033[31m" + var Reset = "\033[0m" + var RootCmd = &cobra.Command + var TimezoneAbbreviations = map[string]int + var White = "\033[37m" + var Yellow = "\033[33m" + func Execute(context context.Context) error + func GetPager(context context.Context) (output io.WriteCloser, close func(), err error) + func ParseLocation(location string) (*time.Location, error) + type AllLogFilter struct + func (filter AllLogFilter) Filter(entry LogEntry) bool + type AndNode struct + Left ConditionNode + Right ConditionNode + func (node AndNode) Evaluate(entry LogEntry) bool + type BooleanNode struct + Value bool + func (node BooleanNode) GetValue(entry LogEntry) string + func (node BooleanNode) String() string + type ConditionLogFilter struct + Condition ConditionNode + func NewConditionFilter(condition string) (*ConditionLogFilter, error) + func (filter ConditionLogFilter) Filter(entry LogEntry) bool + type ConditionNode interface + Evaluate func(entry LogEntry) bool + func ParseCondition(condition string) (ConditionNode, error) + type ConstantNode struct + Value string + func (node ConstantNode) GetValue(entry LogEntry) string + func (node ConstantNode) String() string + type EqualsNode struct + Left LeafNode + Right LeafNode + func CreateEqualNode(left, right string) EqualsNode + func (node EqualsNode) Evaluate(entry LogEntry) bool + type FieldNode struct + Name string + func (node FieldNode) GetValue(entry LogEntry) string + func (node FieldNode) String() string + type LeafNode interface + GetValue func(entry LogEntry) string + func ParseLeafNode(value string) LeafNode + type LevelLogFilter struct + LevelSet logger.LevelSet + func NewLevelLogFilter(level string) *LevelLogFilter + func (filter LevelLogFilter) Filter(entry LogEntry) bool + type LogEntry struct + Blobs map[string]any + Fields map[string]any + Hostname string + Level LogLevel + Message string + Name string + PID int64 + Scope string + TaskID int64 + Time time.Time + Topic string + func (entry *LogEntry) UnmarshalJSON(payload []byte) (err error) + func (entry LogEntry) GetField(name string) string + func (entry LogEntry) Write(context context.Context, output io.Writer, options *OutputOptions) + type LogFilter interface + Filter func(entry LogEntry) bool + type LogLevel logger.Level + func (level LogLevel) String() string + func (level LogLevel) Write(output io.Writer, options *OutputOptions) + type MatchNode struct + Left LeafNode + Right LeafNode + func CreateMatchNode(left, right LeafNode) (MatchNode, error) + func (node MatchNode) Evaluate(entry LogEntry) bool + type MultiLogFilter struct + Filters []LogFilter + func (filter *MultiLogFilter) Add(filters ...LogFilter) *MultiLogFilter + func (filter MultiLogFilter) AsFilter() LogFilter + func (filter MultiLogFilter) Filter(entry LogEntry) bool + func (filter MultiLogFilter) IsEmpty() bool + type NotNode struct + Node ConditionNode + func (node NotNode) Evaluate(entry LogEntry) bool + type NumberNode struct + Value float64 + func (node NumberNode) GetValue(entry LogEntry) string + func (node NumberNode) String() string + type OrNode struct + Left ConditionNode + Right ConditionNode + func (node OrNode) Evaluate(entry LogEntry) bool + type OutputOptions struct + Filter string + Location *time.Location + LogLevel string + Output *flags.EnumFlag + UseColors bool + type RegexNode struct + Regex *regexp.Regexp + func (node RegexNode) GetValue(entry LogEntry) string + func (node RegexNode) String() string