logger

package
v0.0.0-...-4e06884 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger()

InitLogger initializes the logger. If the log-format is not specified, it will default to JSON if the output is not a terminal. Required viper variables: log-format as string and debug as bool

func InitLoggerWithConfig

func InitLoggerWithConfig(cfg Config)

InitLoggerWithConfig initializes the logger with the specified configuration.

Types

type Config

type Config struct {
	Debug  bool
	Format string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳