go-ipfn-cmd-util: github.com/ipfn/go-ipfn-cmd-util/logger Index | Files

package logger

import "github.com/ipfn/go-ipfn-cmd-util/logger"

Package logger implements logging helpers.


Package Files



var (
    // Verbose - Enables logger Verbose mode.
    Verbose bool

func Debug Uses

func Debug(line string)

Debug - Prints a line if Verbose is true.

func Debugf Uses

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

Debugf - Prints new formatted line if Verbose is true.

func Debugw Uses

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

Debugw - Prints new formatted line.

func Disable Uses

func Disable()

Disable - Disables logger.

func Error Uses

func Error(err error)

Error - Prints error and exits.

func Fatal Uses

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

Fatal - Prints fatal error and exits.

func Info Uses

func Info(msg string)

Info - Prints new formatted line.

func Infow Uses

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

Infow - Prints new formatted line.

func Line Uses

func Line()

Line - Prints a new line.

func Print Uses

func Print(a ...interface{})

Print - Prints a line.

func PrintJSON Uses

func PrintJSON(v interface{})

PrintJSON - Prints json to console.

func Printf Uses

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

Printf - Prints new formatted line.

func SetLogger Uses

func SetLogger(l *zap.Logger)

SetLogger - Sets logger.

func Sync Uses

func Sync() error

Sync - Flushes logs to buffer.

Package logger imports 4 packages (graph) and is imported by 19 packages. Updated 2018-08-09. Refresh now. Tools for package owners.