zaplogger

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package zaplogger provides an logger.Logger implementation using zap as backend logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger zap.Logger

Logger is a zap wrapper that implements the eventually logger.Logger interface.

func Wrap

func Wrap(l *zap.Logger) *Logger

Wrap wraps a zap.Logger into a zaplogger.Logger instance.

func (*Logger) Debug

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

Debug prints a debug log message.

func (*Logger) Error

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

Error prints an error log message.

func (*Logger) Info

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

Info prints an info log message.

Jump to

Keyboard shortcuts

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