logging

package
v0.448.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 10 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 LogChangedByCtx

func LogChangedByCtx(ctx context.Context, logmessage string)

func LogChangedByCtxf

func LogChangedByCtxf(ctx context.Context, logmessage string, args ...interface{})

func LogChangedf

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

func LogError

func LogError(logmessage string)

func LogErrorByCtx added in v0.444.0

func LogErrorByCtx(ctx context.Context, logmessage string)

func LogErrorByCtxf

func LogErrorByCtxf(ctx context.Context, logmessage string, args ...interface{})

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 LogGoodByCtx

func LogGoodByCtx(ctx context.Context, logmessage string)

func LogGoodByCtxf

func LogGoodByCtxf(ctx context.Context, logmessage string, args ...interface{})

func LogGoodf

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

func LogInfo

func LogInfo(logmessage string)

func LogInfoByCtx

func LogInfoByCtx(ctx context.Context, logmessage string)

func LogInfoByCtxf

func LogInfoByCtxf(ctx context.Context, logmessage string, args ...interface{})

func LogInfoWithLinePrefix

func LogInfoWithLinePrefix(logmessage string, logLinePrefix string)

func LogInfof

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

func LogTurnOfColorOutput

func LogTurnOfColorOutput()

func LogTurnOnColorOutput

func LogTurnOnColorOutput()

func LogWarn

func LogWarn(logmessage string)

func LogWarnByCtxf

func LogWarnByCtxf(ctx context.Context, logmessage string, args ...interface{})

func LogWarnf

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

func OverrideFunctionLogGoErrorFatal

func OverrideFunctionLogGoErrorFatal(overrideFunction func(err error))

func OverrideLog

func OverrideLog(overrideFunction func(logmessage string))

func OverrideLogBold

func OverrideLogBold(overrideFunction func(logmessage string))

func OverrideLogByChangeSummary

func OverrideLogByChangeSummary(overrideFunction func(changeSummary *changesummary.ChangeSummary, message string))

func OverrideLogByChangeSummaryf

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

func OverrideLogChanged

func OverrideLogChanged(overrideFunction func(logmessage string))

func OverrideLogChangedf

func OverrideLogChangedf(overrideFunction func(logmessage string, arg ...interface{}))

func OverrideLogError

func OverrideLogError(overrideFunction func(logmessage string))

func OverrideLogErrorByCtx added in v0.444.0

func OverrideLogErrorByCtx(overrideFunction func(ctx context.Context, logmessage string))

func OverrideLogErrorByCtxf

func OverrideLogErrorByCtxf(overrideFunction func(ctx context.Context, logmessage string, args ...interface{}))

func OverrideLogErrorf

func OverrideLogErrorf(overrideFunction func(logmessage string, arg ...interface{}))

func OverrideLogFatal

func OverrideLogFatal(overrideFunction func(logmessage string))

func OverrideLogFatalWithTrace

func OverrideLogFatalWithTrace(overrideFunction func(errorMessageOrError interface{}))

func OverrideLogFatalWithTracef

func OverrideLogFatalWithTracef(overrideFunction func(logmessage string, args ...interface{}))

func OverrideLogFatalf

func OverrideLogFatalf(overrideFunction func(logmessage string, args ...interface{}))

func OverrideLogGoError

func OverrideLogGoError(overrideFunction func(err error))

func OverrideLogGoErrorFatalWithTrace

func OverrideLogGoErrorFatalWithTrace(overrideFunction func(err error))

func OverrideLogGood

func OverrideLogGood(overrideFunction func(logmessage string))

func OverrideLogGoodByCtx

func OverrideLogGoodByCtx(overrideFunction func(ctx context.Context, logmessage string))

func OverrideLogGoodByCtxf

func OverrideLogGoodByCtxf(overrideFunction func(ctx context.Context, logmessage string, args ...interface{}))

func OverrideLogInfo

func OverrideLogInfo(overrideFunction func(logmessage string))

func OverrideLogInfoByCtx

func OverrideLogInfoByCtx(overrideFunction func(ctx context.Context, logmessage string))

func OverrideLogInfoByCtxf

func OverrideLogInfoByCtxf(overrideFunction func(ctx context.Context, logmessage string, args ...interface{}))

func OverrideLogInfoWithLinePrefix

func OverrideLogInfoWithLinePrefix(overrideFunction func(logmessage string, logLinePrefix string))

func OverrideLogInfof

func OverrideLogInfof(overrideFunction func(logmessage string, args ...interface{}))

func OverrideLogWarn

func OverrideLogWarn(overrideFunction func(logmessage string))

func OverrideLogWarnf

func OverrideLogWarnf(overrideFunction func(logmessage string, args ...interface{}))

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