logger

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush()

func Init

func Init(opts *Options)

Types

type CronLoggerAdapter added in v0.7.1

type CronLoggerAdapter struct {
}

func NewCronLoggerAdapter added in v0.7.1

func NewCronLoggerAdapter() *CronLoggerAdapter

func (CronLoggerAdapter) Error added in v0.7.1

func (c CronLoggerAdapter) Error(err error, msg string, keysAndValues ...interface{})

Error logs an error condition.

func (CronLoggerAdapter) Info added in v0.7.1

func (c CronLoggerAdapter) Info(msg string, keysAndValues ...interface{})

Info logs routine messages about cron's operation.

type Options added in v0.6.5

type Options struct {
	File    string
	Debug   bool
	Context context.Context
	WG      *sync.WaitGroup
}

Jump to

Keyboard shortcuts

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