log

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log provides a basic logger using Logrus as base

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Log *logrus.Logger
}

func NewLogger

func NewLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(format string, v ...interface{})

Debug logs a message with severity DEBUG.

func (*Logger) Error

func (l *Logger) Error(format string, v ...interface{})

Error logs a message with severity ERROR.

func (*Logger) Fatal

func (l *Logger) Fatal(format string, v ...interface{})

Fatal logs a message with severity ERROR followed by a call to os.Exit().

func (*Logger) Info

func (l *Logger) Info(format string, v ...interface{})

Info logs a message with severity INFO.

func (*Logger) SetLevel

func (l *Logger) SetLevel(level string)

func (*Logger) Warning

func (l *Logger) Warning(format string, v ...interface{})

Warning logs a message with severity WARNING.

Jump to

Keyboard shortcuts

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