logging

package
v0.0.0-...-08c5b1d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string
const (
	Startup      Category = "Startup"
	Shutdown     Category = "Shutdown"
	Postgres     Category = "Postgres"
	Service      Category = "Service"
	RuntimePanic Category = "RuntimePanic"
)

func (Category) String

func (s Category) String() string

type Logger

type Logger interface {
	Info(cat Category, caller string, message string)
	Debug(cat Category, caller string, message string)
	Error(cat Category, caller string, message string)
	Fatal(cat Category, caller string, message string)
}

Logger is a custom logger interface. this interface help us to easily switch between different loggers.

func NewLogger

func NewLogger(cfg *config.Config) Logger

Jump to

Keyboard shortcuts

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