logging

package
v0.0.0-...-014b5c3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(output string, l string)

*

  • Configure logging

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Fatal

func Fatal(args ...interface{})

func For

func For(name string) *logrus.Entry

*

  • Add logger name as field var

func Info

func Info(args ...interface{})

func Warn

func Warn(args ...interface{})

Types

type MyFormatter

type MyFormatter struct{}

*

  • Our custom formatter

func (*MyFormatter) Format

func (f *MyFormatter) Format(entry *logrus.Entry) ([]byte, error)

*

  • Format entry

Jump to

Keyboard shortcuts

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