log

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 14 Imported by: 0

README

WORK IN PROGRESS

Usage

log_test.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(i ...interface{})

func Debugf

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

func Debugj

func Debugj(j JSON)

func DisableColor

func DisableColor()

func EnableColor

func EnableColor()

func Error

func Error(i ...interface{})

func Errorf

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

func Errorj

func Errorj(j JSON)

func Fatal

func Fatal(i ...interface{})

func Fatalf

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

func Fatalj

func Fatalj(j JSON)

func Info

func Info(i ...interface{})

func Infof

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

func Infoj

func Infoj(j JSON)

func Output

func Output() io.Writer

func Panic

func Panic(i ...interface{})

func Panicf

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

func Panicj

func Panicj(j JSON)

func Prefix

func Prefix() string

func Print

func Print(i ...interface{})

func Printf

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

func Printj

func Printj(j JSON)

func SetHeader

func SetHeader(h string)

func SetLevel

func SetLevel(v Lvl)

func SetOutput

func SetOutput(w io.Writer)

func SetPrefix

func SetPrefix(p string)

func Warn

func Warn(i ...interface{})

func Warnf

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

func Warnj

func Warnj(j JSON)

Types

type JSON

type JSON map[string]interface{}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(prefix string) (l *Logger)

func (*Logger) Color

func (l *Logger) Color() *color.Color

func (*Logger) Debug

func (l *Logger) Debug(i ...interface{})

func (*Logger) Debugf

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

func (*Logger) Debugj

func (l *Logger) Debugj(j JSON)

func (*Logger) DisableColor

func (l *Logger) DisableColor()

func (*Logger) EnableColor

func (l *Logger) EnableColor()

func (*Logger) Error

func (l *Logger) Error(i ...interface{})

func (*Logger) Errorf

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

func (*Logger) Errorj

func (l *Logger) Errorj(j JSON)

func (*Logger) Fatal

func (l *Logger) Fatal(i ...interface{})

func (*Logger) Fatalf

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

func (*Logger) Fatalj

func (l *Logger) Fatalj(j JSON)

func (*Logger) Info

func (l *Logger) Info(i ...interface{})

func (*Logger) Infof

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

func (*Logger) Infoj

func (l *Logger) Infoj(j JSON)

func (*Logger) Level

func (l *Logger) Level() Lvl

func (*Logger) Output

func (l *Logger) Output() io.Writer

func (*Logger) Panic

func (l *Logger) Panic(i ...interface{})

func (*Logger) Panicf

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

func (*Logger) Panicj

func (l *Logger) Panicj(j JSON)

func (*Logger) Prefix

func (l *Logger) Prefix() string

func (*Logger) Print

func (l *Logger) Print(i ...interface{})

func (*Logger) Printf

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

func (*Logger) Printj

func (l *Logger) Printj(j JSON)

func (*Logger) SetHeader

func (l *Logger) SetHeader(h string)

func (*Logger) SetLevel

func (l *Logger) SetLevel(v Lvl)

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer)

func (*Logger) SetPrefix

func (l *Logger) SetPrefix(p string)

func (*Logger) Warn

func (l *Logger) Warn(i ...interface{})

func (*Logger) Warnf

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

func (*Logger) Warnj

func (l *Logger) Warnj(j JSON)

type Lvl

type Lvl uint8
const (
	DEBUG Lvl = iota + 1
	INFO
	WARN
	ERROR
	OFF
)

func Level

func Level() Lvl

Jump to

Keyboard shortcuts

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