Back to

Package logging

Latest Go to latest

The highest tagged major version is .

Published: Nov 8, 2019 | License: MIT | Module:


type Logging

type Logging interface {
	Info(msg string)
	Warn(msg string)
	Error(msg string)
	Fatal(msg string)

Logging abstracts the concrete logging mechanism.

type ZapLogger

type ZapLogger struct {
	Zap *zap.Logger

ZapLogger uses zap to log.

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg string)

Error logs at the error level.

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(msg string)

Fatal logs at the fatal level.

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg string)

Info logs at the info level.

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg string)

Warn logs at the warn level.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier