logboek

package module
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 196

README

logboek

Logging library for cli utils.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptedLevel

func AcceptedLevel() level.Level

func Colorize added in v0.4.3

func Colorize(style *style.Style, format string, a ...interface{}) string

func Context

func Context(ctx context.Context) types.LoggerInterface

func Debug

func Debug() types.ManagerInterface

func Default

func Default() types.ManagerInterface

func DefaultLogger

func DefaultLogger() types.LoggerInterface

func Error

func Error() types.ManagerInterface

func FitText

func FitText(text string, options types.FitTextOptions) string

func Info

func Info() types.ManagerInterface

func IsAcceptedLevel

func IsAcceptedLevel(lvl level.Level) bool

func LogBlock

func LogBlock(format string, a ...interface{}) types.LogBlockInterface

func LogF

func LogF(format string, a ...interface{})

func LogFDetails

func LogFDetails(format string, a ...interface{})

func LogFHighlight

func LogFHighlight(format string, a ...interface{})

func LogFWithCustomStyle

func LogFWithCustomStyle(style *style.Style, format string, a ...interface{})

func LogLn

func LogLn(a ...interface{})

func LogLnDetails

func LogLnDetails(a ...interface{})

func LogLnHighlight

func LogLnHighlight(a ...interface{})

func LogLnWithCustomStyle

func LogLnWithCustomStyle(style *style.Style, a ...interface{})

func LogOptionalLn

func LogOptionalLn()

func LogProcess

func LogProcess(format string, a ...interface{}) types.LogProcessInterface

func LogProcessInline

func LogProcessInline(format string, a ...interface{}) types.LogProcessInlineInterface

func NewContext

func NewContext(ctx context.Context, logger types.LoggerInterface) context.Context

func NewLogger

func NewLogger(outStream, errStream io.Writer) types.LoggerInterface

func NewSubLogger

func NewSubLogger(outStream, errStream io.Writer) types.LoggerInterface

func ProxyErrStream

func ProxyErrStream() io.Writer

func ProxyOutStream

func ProxyOutStream() io.Writer

func Reset added in v0.4.3

func Reset()

func ResetModes added in v0.4.4

func ResetModes()

func ResetState added in v0.4.4

func ResetState()

func SetAcceptedLevel

func SetAcceptedLevel(lvl level.Level)

func Streams

func Streams() types.StreamsInterface

func Warn

func Warn() types.ManagerInterface

Types

This section is empty.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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