Documentation ¶
Index ¶
- Constants
- func Debug(msg string, a ...interface{})
- func Error(msg string, a ...interface{})
- func ErrorFilePath() string
- func Fatal(msg string, a ...interface{})
- func Info(msg string, a ...interface{})
- func Level() loggers.LogLevel
- func LogFilePath() string
- func PrepareLogging(fs afero.Fs, verbose bool, loggerSpy io.Writer)
- func Warn(msg string, a ...interface{})
- func WithCtxFields(ctx context.Context) loggers.Logger
- func WithFields(fields ...field.Field) loggers.Logger
- type CtxGraphComponentId
- type CtxKeyCoord
- type CtxKeyEnv
- type CtxValEnv
- type CtxValGraphComponentId
Constants ¶
const ( LogDirectory = ".logs" LogFileTimestampPrefixFormat = "20060102-150405" )
Variables ¶
This section is empty.
Functions ¶
func ErrorFilePath ¶ added in v2.8.1
func ErrorFilePath() string
ErrorFilePath returns the path of an error logfile for the current execution time - depending on when this function is called such a file may not yet exist
func LogFilePath ¶ added in v2.8.1
func LogFilePath() string
LogFilePath returns the path of a logfile for the current execution time - depending on when this function is called such a file may not yet exist
func WithCtxFields ¶
WithCtxFields creates a logger instance with preset structured logging field.Field based on the Context Coordinate (via CtxKeyCoord) and environment (via CtxKeyEnv CtxValEnv) information is added to logs from the Context
func WithFields ¶
WithFields adds additional field.Field for structured logs It accepts vararg fields and should not be called more than once per log call
Types ¶
type CtxGraphComponentId ¶ added in v2.6.0
type CtxGraphComponentId struct{}
CtxGraphComponentId context key used for correlating logs that belong to deployment of a sub graph
type CtxKeyCoord ¶
type CtxKeyCoord struct{}
CtxKeyCoord context key used for contextual coordinate information
type CtxKeyEnv ¶
type CtxKeyEnv struct{}
CtxKeyEnv context key used for contextual environment information
type CtxValGraphComponentId ¶ added in v2.6.0
type CtxValGraphComponentId int
CtxValGraphComponentId context value used for correlating logs that belong to deployment of a sub graph