logger

package
v0.0.0-...-de23339 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 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 Fatal

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

func Info

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

func LogError

func LogError(w io.Writer, message string)

func LogLevel

func LogLevel(logger Logger)

func LogSuccess

func LogSuccess(w io.Writer, message string)

func LogSuccessBad

func LogSuccessBad(w io.Writer, message string)

func LogWarning

func LogWarning(w io.Writer, message string)

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
	Silent   bool
	LogLevel string
}

Jump to

Keyboard shortcuts

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