logy

package module
v0.0.0-...-a52326a Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: MIT Imports: 9 Imported by: 3

README

logy

Simple log library for Golang.

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logy

type Logy interface {
	SetOutput(io.Writer)
	SetWriteLevel(int)
	SetDateFormat(string)
	SetName(string)
	Clone() Logy

	// Debug prints all given string variables.
	Debug(...string)

	// Debugf prints all given string variales after formated by first argument.
	Debugf(string, ...interface{})

	// Info prints concated given string informations.
	Info(...string)

	// Infof prints concated given string informations after formated by first argument.
	Infof(string, ...interface{})
	Warn(...string)
	Warnf(string, ...interface{})

	// Error put a message to logy, then shutdown the process with exit code 1.
	Error(...string)

	// Errorf put a message to logy, then shutdown the process with exit code 1.
	Errorf(string, ...interface{})
}

Logy is a simple and useful logger package.

func Clone

func Clone(name string) Logy

Clone returns cloned Logy struct.

func New

func New(name string) Logy

New create and return new Logy instance.

func Std

func Std() Logy

Std returns default Logy instance can be uses directly.

Jump to

Keyboard shortcuts

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