log

package
v0.0.0-...-9e87bf8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() zerolog.Logger

func Init

func Init(serviceName string, opts ...LoggerOption)

Types

type LoggerConfig

type LoggerConfig struct {
	// contains filtered or unexported fields
}

type LoggerOption

type LoggerOption func(*LoggerConfig)

func WithConsoleLogger

func WithConsoleLogger() LoggerOption

func WithFileLogger

func WithFileLogger(fileName string) LoggerOption

func WithLogLevel

func WithLogLevel(logLevel int) LoggerOption

Jump to

Keyboard shortcuts

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