logger

package module
v1.0.88 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package logger - wrapper for zap

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger -

func NewLogger

func NewLogger() (*Logger, error)

NewLogger - Creates a new logger instance

func (Logger) Debug

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

Debug - Log with debug

func (Logger) Error

func (l Logger) Error(msg string, fields ...zap.Field)

Error - Log with error

func (Logger) Fatal

func (l Logger) Fatal(msg string, fields ...zap.Field)

Fatal - Log with fatal

func (Logger) Info

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

Info - Log with info

func (Logger) Warn

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

Warn - Log with warn

Jump to

Keyboard shortcuts

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