burrow: github.com/hyperledger/burrow/logging/logconfig/presets Index | Files

package presets

import "github.com/hyperledger/burrow/logging/logconfig/presets"


Package Files



const (
    Top        = "top"
    Up         = "up"
    Down       = "down"
    Info       = "info"
    Trace      = "trace"
    Minimal    = "minimal"
    Opcodes    = "opcodes"
    IncludeAny = "include-any"
    Stderr     = "stderr"
    Stdout     = "stdout"
    Terminal   = "terminal"
    JSON       = "json"
    Capture    = "capture"
    File       = "file"

func BuildSinkConfig Uses

func BuildSinkConfig(ops ...string) (*logconfig.SinkConfig, error)

func Describe Uses

func Describe(name string) string

type Instruction Uses

type Instruction struct {
    // contains filtered or unexported fields

Function to generate part of a tree of Sinks (e.g. append a single child node, or an entire subtree). Each Instruction takes a (sub)root, which it may modify, and appends further child sinks below that root. Returning the new subroot from which to apply any further Presets. When chained together in a pre-order instructions can be composed to form an entire Sink tree.

func Instructons Uses

func Instructons() []Instruction

func (Instruction) Description Uses

func (i Instruction) Description() string

func (Instruction) Name Uses

func (i Instruction) Name() string

Package presets imports 5 packages (graph) and is imported by 4 packages. Updated 2018-10-24. Refresh now. Tools for package owners.