logger

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(out zapcore.WriteSyncer) *Builder

func (*Builder) Domain

func (b *Builder) Domain(domain Domain) *Logger

func (*Builder) Log

func (b *Builder) Log() *Logger

func (*Builder) SetDomainLevel

func (b *Builder) SetDomainLevel(domain string, level zapcore.Level)

type Domain

type Domain uint8
const (
	UnknownDomain Domain = iota
	AllDomain
	InitDomain
	GraphDomain
	ModuleInfoDomain
	PackageInfoDomain
	ModuleDependencyDomain
	ParserDomain
	QueryDomain
	PrinterDomain
)

type Logger

type Logger struct {
	*zap.Logger
	// contains filtered or unexported fields
}

func (*Logger) AddIndent

func (l *Logger) AddIndent()

func (*Logger) RemoveIndent

func (l *Logger) RemoveIndent()

Jump to

Keyboard shortcuts

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