logger

package
v0.0.0-...-aae6bad Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Overview

Package logger implements logging helpers.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Verbose - Enables logger Verbose mode.
	Verbose bool
)

Functions

func Debug

func Debug(line string)

Debug - Prints a line if Verbose is true.

func Debugf

func Debugf(format string, args ...interface{})

Debugf - Prints new formatted line if Verbose is true.

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

Debugw - Prints new formatted line.

func Disable

func Disable()

Disable - Disables logger.

func Error

func Error(err error)

Error - Prints error and exits.

func Fatal

func Fatal(format string, args ...interface{})

Fatal - Prints fatal error and exits.

func Info

func Info(msg string)

Info - Prints new formatted line.

func Infow

func Infow(msg string, keysAndValues ...interface{})

Infow - Prints new formatted line.

func Line

func Line()

Line - Prints a new line.

func Print

func Print(a ...interface{})

Print - Prints a line.

func PrintJSON

func PrintJSON(v interface{})

PrintJSON - Prints json to console.

func Printf

func Printf(format string, args ...interface{})

Printf - Prints new formatted line.

func SetLogger

func SetLogger(l *zap.Logger)

SetLogger - Sets logger.

func Sync

func Sync() error

Sync - Flushes logs to buffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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