logger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 0 Imported by: 6

README

go-logger

Build Status Go Report Card GoDoc

implementations

Documentation

Overview

Package logger contains interfaces to deal with loggers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {
	New() (Logger, error)
}

Creator describes a struct used to create loggers

type Logger

type Logger interface {
	// AddStaticData is used to add static data to the logs.
	// static data will be added to all logs
	AddStaticData(msg string, args ...interface{})

	// Errorf is used to log an error with formating
	Errorf(msg string, args ...interface{})

	// Error is used to log an error
	Error(msg string)

	// Close closes the connection to BasicLogger
	Close() error
}

Logger is an interface used for all loggers

Directories

Path Synopsis
Package implementations contains helpers to help implementing a logger
Package implementations contains helpers to help implementing a logger
mocklogger
Package mocklogger is a generated GoMock package.
Package mocklogger is a generated GoMock package.

Jump to

Keyboard shortcuts

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