log

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log provides logging for Fish executable

Index

Constants

This section is empty.

Variables

View Source
var (
	// UseTimestamp needed if you don't want to output timestamp in the logging message
	// for example that's helpful in case your service journal already contains timestamps
	UseTimestamp = true
)

Functions

func Debug

func Debug(v ...any)

Debug logs debug message

func Debugf

func Debugf(format string, v ...any)

Debugf logs debug message with formatting

func Error

func Error(v ...any) error

Error logs error message

func Errorf

func Errorf(format string, v ...any) error

Errorf logs error message with formatting

func GetErrorLogger added in v0.7.5

func GetErrorLogger() *log.Logger

GetErrorLogger returns Error logger

func GetInfoLogger

func GetInfoLogger() *log.Logger

GetInfoLogger returns Info logger

func Info

func Info(v ...any)

Info logs info message

func Infof

func Infof(format string, v ...any)

Infof logs info message with formatting

func InitLoggers

func InitLoggers() error

InitLoggers initializes the loggers

func SetVerbosity

func SetVerbosity(level string) error

SetVerbosity defines verbosity of the logger

func Warn

func Warn(v ...any)

Warn logs warning message

func Warnf

func Warnf(format string, v ...any)

Warnf logs warning message with formatting

Types

type VerbosityType added in v0.8.2

type VerbosityType int8
const (
	VerbosityNone  VerbosityType = iota // 0
	VerbosityDebug                      // 1
	VerbosityInfo                       // 2
	VerbosityWarn                       // 3
	VerbosityError                      // 4
)

func GetVerbosity added in v0.7.5

func GetVerbosity() VerbosityType

GetVerbosity returns current verbosity level

Jump to

Keyboard shortcuts

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