Documentation
¶
Index ¶
- Variables
- func ConfigureLogging(mode string, isDebug bool) *slog.Logger
- func ForceStdoutContext(parent context.Context) context.Context
- func LogValidationErrors(filename string, validationErrors []validator.ValidationError, err error, ...)
- func Logger() *slog.Logger
- func NewRawLoggerTo(w io.Writer) *slog.Logger
- func RawLogger() *slog.Logger
- type OutputMode
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultStdoutContext = ForceStdoutContext(context.Background())
)
Functions ¶
func ForceStdoutContext ¶ added in v1.5.0
func LogValidationErrors ¶ added in v1.9.0
func LogValidationErrors(filename string, validationErrors []validator.ValidationError, err error, outputJSON bool)
Types ¶
type OutputMode ¶
type OutputMode string
OutputMode is a custom type for specifying a small number of allowed parameters in Cobra (cli-library).
const ( OutputModeText OutputMode = "text" OutputModeJSON OutputMode = "json" )
Click to show internal directories.
Click to hide internal directories.