logger

package
v0.0.0-...-e7e2df9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

View Source
const (
	Framework string = "Framework"
	Portal    string = "Portal"
	API       string = "API"
	Database  string = "Database"
	TranCode  string = "TranCode"
	Job       string = "Job"
)

Variables

View Source
var (
	Logger          *logs.IACLogger
	PortalLogger    *logs.IACLogger
	APILogger       *logs.IACLogger
	DatabaseLogger  *logs.IACLogger
	TranCodeLogger  *logs.IACLogger
	JobLogger       *logs.IACLogger
	FrameworkLogger *logs.IACLogger
)

Functions

func ConvertJson

func ConvertJson(jobj interface{}) string

func GlobalFormatter

func GlobalFormatter(lm *logs.LogMsg) string

func Init

func Init(config map[string]interface{})

Types

type Log

type Log struct {
	ModuleName     string
	ControllerName string
	User           string
	ClientID       string
}

func (*Log) Alert

func (l *Log) Alert(logmsg string)

func (*Log) Critical

func (l *Log) Critical(logmsg string)

func (*Log) Debug

func (l *Log) Debug(logmsg string)

func (*Log) Emergency

func (l *Log) Emergency(logmsg string)

func (*Log) Error

func (l *Log) Error(logmsg string)

func (*Log) ErrorLog

func (l *Log) ErrorLog(err error)

func (*Log) Info

func (l *Log) Info(logmsg string)

func (*Log) Notice

func (l *Log) Notice(logmsg string)

func (*Log) PerformanceWithDuration

func (l *Log) PerformanceWithDuration(function string, elapsed time.Duration)

func (*Log) Warn

func (l *Log) Warn(logmsg string)

Jump to

Keyboard shortcuts

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