logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides functions to set up a new logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.Logger
}

Logger is a small wrapper around a zap.Logger.

func New

func New(logLevel, logFormat string) (*Logger, error)

New creates a new Logger with given logLevel and logFormat as part of a permanent field of the logger.

Jump to

Keyboard shortcuts

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