logging

package
v0.203.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableLoggingToUsersHome

func EnableLoggingToUsersHome(applicationName string, verbose bool) (logFilePath string, err error)

func Log

func Log(logmessage string)

func LogBold

func LogBold(logmessage string)

func LogByChangeSummary

func LogByChangeSummary(changeSummary *changesummary.ChangeSummary, message string)

func LogByChangeSummaryf

func LogByChangeSummaryf(changeSummary *changesummary.ChangeSummary, message string, args ...interface{})

func LogChanged

func LogChanged(logmessage string)

func LogChangedf

func LogChangedf(logmessage string, args ...interface{})

func LogError

func LogError(logmessage string)

func LogErrorf

func LogErrorf(logmessage string, args ...interface{})

func LogFatal

func LogFatal(logmessage string)

func LogFatalWithTrace

func LogFatalWithTrace(errorMessageOrError interface{})

func LogFatalWithTracef

func LogFatalWithTracef(logmessage string, args ...interface{})

func LogFatalf

func LogFatalf(logmessage string, args ...interface{})

func LogGoError

func LogGoError(err error)

func LogGoErrorFatal

func LogGoErrorFatal(err error)

func LogGoErrorFatalWithTrace

func LogGoErrorFatalWithTrace(err error)

func LogGood

func LogGood(logmessage string)

func LogGoodf

func LogGoodf(logmessage string, args ...interface{})

func LogInfo

func LogInfo(logmessage string)

func LogInfof

func LogInfof(logmessage string, args ...interface{})

func LogTurnOfColorOutput

func LogTurnOfColorOutput()

func LogTurnOnColorOutput

func LogTurnOnColorOutput()

func LogWarn

func LogWarn(logmessage string)

func LogWarnf

func LogWarnf(logmessage string, args ...interface{})

func MustEnableLoggingToUsersHome

func MustEnableLoggingToUsersHome(applicationName string, verbose bool) (logFilePath string)

Types

type LogSettings

type LogSettings struct {
	ColorDisabled bool
}

func NewLogSettings

func NewLogSettings() (l *LogSettings)

func (*LogSettings) GetColorDisabled

func (l *LogSettings) GetColorDisabled() (colorDisabled bool)

func (*LogSettings) IsColorDisabled

func (l *LogSettings) IsColorDisabled() (colorDisabled bool)

func (*LogSettings) IsColorEnabled

func (l *LogSettings) IsColorEnabled() (colorEnabled bool)

func (*LogSettings) SetColorDisabled

func (l *LogSettings) SetColorDisabled(colorDisabled bool)

func (*LogSettings) SetColorEnabled

func (l *LogSettings) SetColorEnabled(colorEnabled bool)

Jump to

Keyboard shortcuts

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