logger

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package logger implements abstract logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...Field)

func Error

func Error(err error, msg string, fields ...Field)

func Fatal

func Fatal(err error, msg string, fields ...Field)

func Info

func Info(msg string, fields ...Field)

func NewAppLogger

func NewAppLogger(zapLogger *ZapLogger, appName, appVersion string)

func Warn

func Warn(msg string, fields ...Field)

Types

type Field

type Field struct {
	Key string
	Val interface{}
}

type Logger

type Logger interface {
	// contains filtered or unexported methods
}

type ZapLogger

type ZapLogger struct {
	*zap.Logger
}

func NewZapLogger

func NewZapLogger(logLevel string) *ZapLogger

func (*ZapLogger) Close

func (z *ZapLogger) Close()

Jump to

Keyboard shortcuts

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