log

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: BSD-3-Clause Imports: 0 Imported by: 4

README

Generic leveled logger interface

Build Status Coverage Status GoDoc Go Report Card Release

Usage

logger.Debug(args ...interface{})
logger.Debugf(format string, args ...interface{})

logger.Info(args ...interface{})
logger.Infof(format string, args ...interface{})

logger.Warn(args ...interface{})
logger.Warnf(format string, args ...interface{})

logger.Error(args ...interface{})
logger.Errorf(format string, args ...interface{})

logger.Fatal(args ...interface{})
logger.Fatalf(format string, args ...interface{})

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})

	Info(args ...interface{})
	Infof(format string, args ...interface{})

	Warn(args ...interface{})
	Warnf(format string, args ...interface{})

	Error(args ...interface{})
	Errorf(format string, args ...interface{})

	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
}

Logger is a general logger intercae.

Directories

Path Synopsis
zapadapter module

Jump to

Keyboard shortcuts

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