gccsvlog

package
v0.0.0-...-54f7cab Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvLogger

type CsvLogger interface {
	filter.FilterLogger
	FileName() string
	Csv(str ...string)
	CsvErr(err error, str ...string)
}

func New

func New(csvPath string, headers []string, opts []CsvOption, filterOpts []filter.FilterOption, logOpts ...log.LogOption) (CsvLogger, error)

New creates a dual logger with csv and console output

type CsvOption

type CsvOption func(*csvCfg) error

func WithTruncateOnHeadersMissing

func WithTruncateOnHeadersMissing() CsvOption

Jump to

Keyboard shortcuts

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