logger

package
v0.1.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(s string) string

Types

type Logger

type Logger interface {
	log.Logger
}

Logger is the new interface and base on log.Logger that from kind project.

func New

func New(writer io.Writer, verbosity log.Level, opts ...Option) Logger

New returns a new logger with the given verbosity.

type Option

type Option func(*logger)

func WithColored

func WithColored() Option

Jump to

Keyboard shortcuts

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