settings

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package settings configures build for logging

Index

Constants

View Source
const DefaultFiltersText = "level,tag"

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	TagFilterText    string
	LevelFilterText  string
	DeviceText       string
	TagsOutputText   string
	OutputFormatText string
	ColorText        string
	FiltersText      string
}

func Getenv

func Getenv() Builder

func (Builder) Color

func (builder Builder) Color() bool

func (Builder) Device

func (builder Builder) Device() io.StringWriter

func (Builder) Filters added in v0.2.0

func (builder Builder) Filters() []handler.Handler

func (Builder) GetFilter added in v0.2.0

func (builder Builder) GetFilter(name string) handler.Handler

func (Builder) LevelFilter

func (builder Builder) LevelFilter() handler.Handler

func (Builder) OutputFormat

func (builder Builder) OutputFormat() handler.OutputFormat

func (Builder) OutputHandler

func (builder Builder) OutputHandler() handler.Handler

func (Builder) OutputTags

func (builder Builder) OutputTags() bool

func (Builder) PainterBuilder

func (builder Builder) PainterBuilder() func(io.StringWriter) paint.Painter

func (Builder) TagFilter

func (builder Builder) TagFilter() handler.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL