logger

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides logging functions. As default, logger discards all passed messages. See SetOutput for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...interface{})

func Fatalf

func Fatalf(format string, v ...interface{})

func Printf

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

func Println

func Println(v ...interface{})

func Reset added in v0.7.2

func Reset()

Reset resets logging all parameters.

func Scriptf added in v0.7.3

func Scriptf(format string, f func() []interface{})

Scriptf is similar with Scriptln, but for formatting output.

func Scriptln added in v0.7.2

func Scriptln(f func() []interface{})

Scriptln receives a function f which executes something and returns some values as a slice of empty interfaces. If logging is disabled, f is not executed.

func SetOutput

func SetOutput(w io.Writer)

SetOutput enables logging that writes out logs to w.

func SetPrefix

func SetPrefix(p string)

SetPrefix changes the log prefix to another one. The default prefix is "evans: ".

Types

This section is empty.

Jump to

Keyboard shortcuts

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