log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 2 Imported by: 4

Documentation

Overview

Package log is a wrapper around github.com/Sirupsen/logrus to enable formatted options to be the same globally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug will send a log message to the debug level.

func Error

func Error(args ...interface{})

Error will send a log message to the error level.

func Fatal

func Fatal(args ...interface{})

Fatal will send a log message to the fatal level.

func Info

func Info(args ...interface{})

Info will send a log message to the info level.

func Panic

func Panic(args ...interface{})

Panic will send a log message to the panic level.

func Printf

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

Printf will print a standard log message

func Warn

func Warn(args ...interface{})

Warn will send a log message to the warn level.

func WithFields

func WithFields(fields Fields) *logrus.Entry

WithFields adds fields to a log message.

Types

type Fields

type Fields map[string]interface{}

Fields are a map of fields to print out in a log message.

Jump to

Keyboard shortcuts

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