logger

package module
v0.0.0-...-2504e23 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 1 Imported by: 0

README

Logger module for go

Build Status GoDoc GitHub license

var logger = NewLogger("test-logger")

logger.Debugf("Debugf: %s", "Debugf")
logger.Infof("Infof: %s", "Infof")
logger.Warnf("Warnf: %s", "Warnf")
logger.Errorf("Errorf: %s", "Errorf")

Documentation

Overview

Package logger is a basic logger library for simple go projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(tpl string, values ...interface{})
	Infof(tpl string, values ...interface{})
	Warnf(tpl string, values ...interface{})
	Errorf(tpl string, values ...interface{})
	Fatalf(tpl string, values ...interface{})
}

Logger is the interface of logger instances.

func NewLogger

func NewLogger(name string) Logger

NewLogger creates a new logger instance match Logger interface

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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