logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package logger provides a convenient wrapper over zap.SugaredLogger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*zap.SugaredLogger, error)

New creates a new zap.SugaredLogger from a global configuration

func OutputToFile

func OutputToFile(file string)

OutputToFile sets the log file location

func SetDebug

func SetDebug(debug bool)

SetDebug sets the log level

Types

This section is empty.

Jump to

Keyboard shortcuts

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