log

package
v0.0.0-...-821ef61 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 4 Imported by: 9

Documentation

Overview

Package log serves as a light wrapper around logrus.

Index

Constants

This section is empty.

Variables

View Source
var (
	Error   = logrus.Error
	Errorf  = logrus.Errorf
	Errorln = logrus.Errorln
	Fatal   = logrus.Fatal
	Fatalf  = logrus.Fatalf
	Fatalln = logrus.Fatalln
	Panic   = logrus.Panic
	Panicf  = logrus.Panicf
	Panicln = logrus.Panicln
	Print   = logrus.Print
	Printf  = logrus.Printf
	Println = logrus.Println
	Debug   = logrus.Debug
	Debugf  = logrus.Debugf
	Debugln = logrus.Debugln
	Warn    = logrus.Warn
	Warnf   = logrus.Warnf
	Warnln  = logrus.Warnln
	Info    = logrus.Info
	Infof   = logrus.Infof
	Infoln  = logrus.Infoln
)

Alias these functions. More should be added here as needed.

Functions

func GetSentryClient

func GetSentryClient() *raven.Client

GetSentryClient returns the Sentry client for the application, creating it if necessary.

func WithFields

func WithFields(f Fields) *logrus.Entry

WithFields is an alias for logrus.WithFields.

Types

type Fields

type Fields logrus.Fields

Fields is an alias for logrus.Fields.

Jump to

Keyboard shortcuts

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