logger

package
v0.0.0-...-ca0d4d1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logger provides logger functionality (using zap logger instead).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dev bool, cfg *config.LoggerConfig, opts ...Option) *zap.Logger

func NewZapSugarLogger

func NewZapSugarLogger(logger *zap.Logger, level zapcore.Level) log.Logger

NewZapSugarLogger returns a Go kit log.Logger that sends log events to a zap.Logger.

Types

type Option

type Option func(logger *zap.Logger) *zap.Logger

Jump to

Keyboard shortcuts

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