console

package
v0.0.0-...-ee5be7b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Config

type Config struct {
	Target `logos-config:"target" logos-validate:"required,logos.oneof=stderr stdout discard"`
}

func DefaultConfig

func DefaultConfig() Config

type Console

type Console struct {
	zapcore.WriteSyncer
}

type Target

type Target = string
const (
	Discard Target = "discard"
	Stdout  Target = "stdout"
	Stderr  Target = "stderr"
)

Jump to

Keyboard shortcuts

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