console

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func NewConsole

func NewConsole(config Config, file *os.File) zapcore.WriteSyncer

Types

type Config

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

func DefaultConfig

func DefaultConfig() Config

type Console

type Console struct {
	zapcore.WriteSyncer
	// contains filtered or unexported fields
}

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