logger

package module
v0.0.0-...-1bf0284 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 2 Imported by: 0

README

logger

A handy wrapper for go log package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error, messages string, args ...interface{}) bool

Fatal fatal if there is an error

func Log

func Log(err error, messages string, args ...interface{}) bool

Log logs if there is an error

func LogInterface

func LogInterface(v interface{})

LogInterface write a log with pretty formatter

func LogOnly

func LogOnly(message string, args ...interface{})

LogOnly write a log (Just a wrapper of log.Printf)

func Panic

func Panic(err error, messages string, args ...interface{}) bool

Panic panics if there is an error

func Unused

func Unused(v interface{})

Unused is a handy method to consume an interface. Do nothing actually.

Types

This section is empty.

Jump to

Keyboard shortcuts

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