package main

import (
	_ "github.com/sheenobu/quicklog/filters/uuid"
	"github.com/sheenobu/quicklog/inputs/stdin"
	_ "github.com/sheenobu/quicklog/outputs/stdout"
	_ "github.com/sheenobu/quicklog/parsers/plain"

	"golang.org/x/net/context"

	"github.com/sheenobu/quicklog/ql"
)

func main() {

	chain := ql.Chain{
		Input:  &stdin.Process{},
		Output: ql.GetOutput("stdout"),
		Filter: ql.GetFilter("uuid"),
		Parser: ql.GetParser("plain"),
	}

	ctx := context.Background()
	chain.Execute(ctx)

}

package main

import (
	"github.com/sheenobu/quicklog/filters/uuid"
	"github.com/sheenobu/quicklog/inputs/stdin"
	"github.com/sheenobu/quicklog/outputs/debug"
	"github.com/sheenobu/quicklog/parsers/plain"

	"golang.org/x/net/context"

	"github.com/sheenobu/quicklog/ql"
)

func main() {

	chain := ql.Chain{
		Input: &stdin.Process{},
		//Output: &stdout.Process{},
		Output: &debug.Handler{PrintFields: debug.NullableBool{NotNull: false, Value: true}},
		Filter: &uuid.Handler{FieldName: "uuid"},
		Parser: &plain.Parser{},
	}

	ctx := context.Background()
	chain.Execute(ctx)

}

Convert embedded example to use objects directly
Convert embedded example to use objects directly
