loggerdto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrDto

type ErrDto struct {
	Ctx    context.Context
	Fields logger.Fields
	Err    error
	Level  string
	File   string
	Func   string
	Line   int
}

func NewErr

func NewErr(ctx context.Context, level string, err error, fields logger.Fields) *ErrDto

func (*ErrDto) CallerFields

func (e *ErrDto) CallerFields() logrus.Fields

type MsgDto

type MsgDto struct {
	Ctx    context.Context
	Fields logger.Fields
	Level  string
	Msg    string
	File   string
	Func   string
	Line   int
}

func NewMsg

func NewMsg(ctx context.Context, level string, msg string, fields logger.Fields) *MsgDto

func (*MsgDto) CallerFields

func (m *MsgDto) CallerFields() logrus.Fields

Jump to

Keyboard shortcuts

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