logger

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 2 Imported by: 1

README

Simple interface for creating and configuring Uber's go logging library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(debug bool) (*zap.SugaredLogger, error)

CreateLogger Creates a new SugaredLogger, an error is returned if the creation fails

The debug parameters controls how much logging is displayed. It also controls if the caller and stack trace are shown on error

func MustCreateLogger

func MustCreateLogger(debug bool) *zap.SugaredLogger

MustCreateLogger Creates a new SugaredLogger and panics if it couldn't be created

Types

This section is empty.

Jump to

Keyboard shortcuts

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