logging

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogFormatterFromString

func LogFormatterFromString(formatter string) (pterm.LogFormatter, error)

func LogLevelFromString

func LogLevelFromString(level string) (pterm.LogLevel, error)

func LogSection

func LogSection(logger *pterm.Logger, msg string)

func MakeLogger

func MakeLogger(c LoggerConfig) *pterm.Logger

Types

type LoggerConfig

type LoggerConfig struct {
	Level     pterm.LogLevel
	Formatter pterm.LogFormatter
	Writer    io.Writer
	ShowTime  bool
}

Jump to

Keyboard shortcuts

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