logging

package
v0.0.0-...-c1a008c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomLogger

type CustomLogger struct {
	Log *zap.SugaredLogger
}

func NewLogger

func NewLogger(options *LoggerOptions) *CustomLogger

type LoggerOptions

type LoggerOptions struct {
	LogFilePath os.File // if you set flag -lf then, enable console + log file
	LogLevel    string  // by the moment only supported info or debug
	Sugared     bool    // Enable sugared logger
}

Jump to

Keyboard shortcuts

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