logger

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalLogLevel = 1
View Source
var Log logr.Logger = New()

Functions

func EnableGroupSession

func EnableGroupSession(logger interface{}) func()

func New

func New(options ...Option) logr.Logger

Types

type Colors

type Colors struct {
	Info  color.Attribute
	Error color.Attribute
	Key   color.Attribute
}

type GroupedLogger

type GroupedLogger interface {
	Grouped(state bool)
}

type Option added in v0.13.0

type Option func(*logger)

func CheckMarkCharacter

func CheckMarkCharacter(m rune) Option

func Color

func Color(colors Colors) Option

func Err

func Err(w io.Writer) Option

func ErrorMarkCharacter

func ErrorMarkCharacter(m rune) Option

func Grouppable

func Grouppable() Option

func Out

func Out(w io.Writer) Option

func SeparatorCharacter

func SeparatorCharacter(m rune) Option

func Truncate

func Truncate() Option

func WithName

func WithName(name string) Option

func WithTime

func WithTime(format string) Option

Jump to

Keyboard shortcuts

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