logging

package
v1.0.58-beta Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogService

type LogService struct {
	Logger *zap.Logger

} // CONSIDERING SUGAR LOGGING, TRYING STRUCTURED FIRST

func NewLogService

func NewLogService() (*LogService, error)

func (*LogService) Debug

func (l *LogService) Debug(msg string, fields ...zap.Field)

func (*LogService) Error

func (l *LogService) Error(msg string, err error, fields ...zap.Field)

func (*LogService) Errorf

func (l *LogService) Errorf(msg string, err error, fields ...zap.Field) error

func (*LogService) Info

func (l *LogService) Info(msg string, fields ...zap.Field)

func (*LogService) Printf

func (l *LogService) Printf(format string, args ...interface{})

func (*LogService) Sync

func (l *LogService) Sync() error

CALL ON EXIT (PROBABLY PUTTING THIS IN DEFER)

func (*LogService) Warn

func (l *LogService) Warn(msg string, fields ...zap.Field)

func (*LogService) With

func (l *LogService) With(fields ...zap.Field) *LogService

Jump to

Keyboard shortcuts

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