logger

package
v0.0.0-...-e1be92b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROD = "prod"
	DEV  = "dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Mode   string
	Logger *log.Logger
}

func NewLogger

func NewLogger(module string) *Logger

func (*Logger) CriticalF

func (l *Logger) CriticalF(format string, err ...interface{})

func (*Logger) DebugF

func (l *Logger) DebugF(format string, err ...interface{})

func (*Logger) ErrorF

func (l *Logger) ErrorF(format string, err ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, err ...interface{})

func (*Logger) GetLogger

func (l *Logger) GetLogger() *log.Logger

func (*Logger) GetMode

func (l *Logger) GetMode() string

func (*Logger) InfoF

func (l *Logger) InfoF(format string, err ...interface{})

func (*Logger) NoticeF

func (l *Logger) NoticeF(format string, err ...interface{})

func (*Logger) Panicf

func (l *Logger) Panicf(format string, err ...interface{})

func (*Logger) Printf

func (l *Logger) Printf(format string, err ...interface{})

func (*Logger) WarningF

func (l *Logger) WarningF(format string, err ...interface{})

type Logging

type Logging interface {
	Fatalf(format string, v ...interface{})
	Panicf(format string, v ...interface{})
	Printf(format string, v ...interface{})
	GetMode() string
	GetLogger() *log.Logger
}

Jump to

Keyboard shortcuts

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