logger

package
v0.0.0-...-79ceddb Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, fields ...zap.Field)

func Error

func Error(message string, fields ...zap.Field)

func FInfo

func FInfo(w io.Writer, message string)

FInfo I need to check if the debug is false because the error comes in the debug also as true

func FInfoFlags

func FInfoFlags(w io.Writer, message, format, out string)

func LogLevel

func LogLevel(logger Logger)

func New

func New(level zapcore.Level)

func PrintHeader

func PrintHeader(table tablecli.Table, format string)

func PrintRow

func PrintRow(table tablecli.Table, format string, row []string)

Types

type Logger

type Logger struct {
	Debug    bool   `json:"-" yaml:"-" toml:"-"`
	Silent   bool   `json:"-" yaml:"-" toml:"-"`
	LogLevel string `json:"-" yaml:"-" toml:"-"`
}

Jump to

Keyboard shortcuts

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