moltlogger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerTypeKey = "type"
	// Summary logs are ones that report on either task or step summaries
	// (i.e. 500 tables processed; task: "10 minutes")
	LoggerTypeSummary = "summary"
	// Data logs are ones that report on row or individual level operations
	// and quantitiative measures (i.e. 10000 rows completed; failed to verify item with PK 1000)
	LoggerTypeData = "data"
)

Variables

This section is empty.

Functions

func GetDataLogger

func GetDataLogger(logger zerolog.Logger) zerolog.Logger

func GetSummaryLogger

func GetSummaryLogger(logger zerolog.Logger) zerolog.Logger

func Logger

func Logger(fileName string) (zerolog.Logger, error)

The default logger returned without a `type` attribute is considered the task logger. We only mark a log differently if it relates to data and summary fields because those are the minority case and we want people to know that this information is relevant to the performance / operation of their data load.

func RegisterLoggerFlags

func RegisterLoggerFlags(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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