Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyToken ¶
PropertyToken represents a property reference with optional format
type RenderContext ¶
type RenderContext struct {
Theme interface{} // Will be *sinks.ConsoleTheme but we avoid circular dependency
UseColor bool
}
RenderContext holds the context for rendering with themes
type Template ¶
Template represents a parsed output template
func (*Template) RenderWithTheme ¶
func (t *Template) RenderWithTheme(event *core.LogEvent, ctx *RenderContext) string
RenderWithTheme renders the template with theme colors
Click to show internal directories.
Click to hide internal directories.