tavor: github.com/zimmski/tavor/log Index | Files

package log

import "github.com/zimmski/tavor/log"

Index

Package Files

formatter.go log.go

func Debug Uses

func Debug(args ...interface{})

Debug logs a message at level Debug on the standard logger.

func Debugf Uses

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

Debugf logs a message at level Debug on the standard logger.

func Debugln Uses

func Debugln(args ...interface{})

Debugln logs a message at level Debug on the standard logger.

func DecreaseIndentation Uses

func DecreaseIndentation()

DecreaseIndentation decrease the log indentation.

func Error Uses

func Error(args ...interface{})

Error logs a message at level Error on the standard logger.

func Errorf Uses

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

Errorf logs a message at level Error on the standard logger.

func Errorln Uses

func Errorln(args ...interface{})

Errorln logs a message at level Error on the standard logger.

func Fatal Uses

func Fatal(args ...interface{})

Fatal logs a message at level Fatal on the standard logger.

func Fatalf Uses

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

Fatalf logs a message at level Fatal on the standard logger.

func Fatalln Uses

func Fatalln(args ...interface{})

Fatalln logs a message at level Fatal on the standard logger.

func IncreaseIndentation Uses

func IncreaseIndentation()

IncreaseIndentation increase the log indentation.

func Info Uses

func Info(args ...interface{})

Info logs a message at level Info on the standard logger.

func Infof Uses

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

Infof logs a message at level Info on the standard logger.

func Infoln Uses

func Infoln(args ...interface{})

Infoln logs a message at level Info on the standard logger.

func Level Uses

func Level(level logrus.Level)

Level sets the current log level

func LevelDebug Uses

func LevelDebug()

LevelDebug sets the current log level to Debug

func LevelError Uses

func LevelError()

LevelError sets the current log level to Error

func LevelInfo Uses

func LevelInfo()

LevelInfo sets the current log level to Info

func LevelWarn Uses

func LevelWarn()

LevelWarn sets the current log level to Warn

func Panic Uses

func Panic(args ...interface{})

Panic logs a message at level Panic on the standard logger.

func Panicf Uses

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

Panicf logs a message at level Panic on the standard logger.

func Panicln Uses

func Panicln(args ...interface{})

Panicln logs a message at level Panic on the standard logger.

func Print Uses

func Print(args ...interface{})

Print logs a message at level Info on the standard logger.

func Printf Uses

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

Printf logs a message at level Info on the standard logger.

func Println Uses

func Println(args ...interface{})

Println logs a message at level Info on the standard logger.

func Warn Uses

func Warn(args ...interface{})

Warn logs a message at level Warn on the standard logger.

func Warnf Uses

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

Warnf logs a message at level Warn on the standard logger.

func Warning Uses

func Warning(args ...interface{})

Warning logs a message at level Warn on the standard logger.

func Warningf Uses

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

Warningf logs a message at level Warn on the standard logger.

func Warningln Uses

func Warningln(args ...interface{})

Warningln logs a message at level Warn on the standard logger.

func Warnln Uses

func Warnln(args ...interface{})

Warnln logs a message at level Warn on the standard logger.

type TextFormatter Uses

type TextFormatter struct{}

TextFormatter implements a text formatter for logrus Only the log level and the log message are printed out for every log entry.

func (*TextFormatter) Format Uses

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

Format takes a logrus log entry and transforms it to its text format. The error return argument is not nil if the internal buffer is unwritable.

Package log imports 8 packages (graph) and is imported by 13 packages. Updated 2018-11-04. Refresh now. Tools for package owners.