logger

package module
v0.0.0-...-376e8a0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 2 Imported by: 0

README

GO-LOGGER

go-logger provides a simple way to log messages through stderr and stdout with a minimal set of configuration.

Quick start

// initialization (optional)
logger.InitLogger(true)

// use of logger
logger.Error("My error message")

logger.Info("My info message")

logger.Debug("My debug message") // only if verbose is true

Error() publish to stderr, Info() and Debug() publish to stdout

Features

  • Simple logger to use
  • Publish to stderr and stdout messages

License

go-logger is licensed under the MIT license. (http://opensource.org/licenses/MIT)

Contributing

Pull requests are the way to help us here. We will be really gratefull.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...zapcore.Field)

Debug logs info into std out

func Error

func Error(msg string, fields ...zapcore.Field)

Error logs errors into std err

func Info

func Info(msg string, fields ...zapcore.Field)

Info logs info into std out

func InitLogger

func InitLogger(verbose bool)

InitLogger : (optional)

Types

This section is empty.

Jump to

Keyboard shortcuts

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