logger

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset      = "\033[0m"
	Black      = "\033[0;30m"
	Red        = "\033[0;31m"
	Green      = "\033[0;32m"
	Yellow     = "\033[0;33m"
	Blue       = "\033[0;34m"
	Purple     = "\033[0;35m"
	Cyan       = "\033[0;36m"
	White      = "\033[0;37m"
	Gray       = "\033[0;90m"
	BoldBlack  = "\033[1;30m"
	BoldRed    = "\033[1;31m"
	BoldGreen  = "\033[1;32m"
	BoldYellow = "\033[1;33m"
	BoldBlue   = "\033[1;34m"
	BoldPurple = "\033[1;35m"
	BoldCyan   = "\033[1;36m"
	BoldWhite  = "\033[1;37m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerName string `mapstructure:"SERVER_NAME"`
	Logfile    string `mapstructure:"LOGFILE"`
}

type Logger

type Logger struct {
	Logr zerolog.Logger
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(cfg Config) (*Logger, error)

func (*Logger) Close

func (l *Logger) Close() error

Jump to

Keyboard shortcuts

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