logger

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 ...LoggerOption) 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 LoggerOption

type LoggerOption func(*logger)

func CheckMarkCharacter

func CheckMarkCharacter(m rune) LoggerOption

func Color

func Color(colors Colors) LoggerOption

func Err

func Err(w io.Writer) LoggerOption

func ErrorMarkCharacter

func ErrorMarkCharacter(m rune) LoggerOption

func Grouppable

func Grouppable() LoggerOption

func Out

func Out(w io.Writer) LoggerOption

func SeparatorCharacter

func SeparatorCharacter(m rune) LoggerOption

func Truncate

func Truncate() LoggerOption

func WithName

func WithName(name string) LoggerOption

func WithTime

func WithTime(format string) LoggerOption

Jump to

Keyboard shortcuts

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