log

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Trace = iota
	Debug
	Verbose
	Info
	Off
)

Variables

This section is empty.

Functions

func Die

func Die(msg string, err error)

func Disable

func Disable()

func Fail

func Fail(msg string)

func FailWithDetails

func FailWithDetails(msg string, details string)

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Fatalln

func Fatalln(v ...interface{})

func Go

func Go(msg string)

func LevelStrings

func LevelStrings() []string

func LevelToString

func LevelToString(level Level) (string, bool)

func Log

func Log(msg string)

func MustLevelToString

func MustLevelToString(level Level) string

func NewLine

func NewLine(msg string)

func Ok

func Ok(msg string)

func Print

func Print(v ...interface{})

func Printf

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

func Println

func Println(v ...interface{})

func Replace

func Replace(newWriter io.Writer) (formerWriter io.Writer)

func Rollback

func Rollback(msg string)

func Run

func Run(msg string)

func SetV

func SetV(level Level)

func Skip

func Skip(msg string)

func Stderr

func Stderr(stderr string)

func UnsafeDie

func UnsafeDie(msg string, err error)

func UnsafeFail

func UnsafeFail(msg string)

func UnsafeFatal

func UnsafeFatal(v ...interface{})

func UnsafeFatalf

func UnsafeFatalf(format string, v ...interface{})

func UnsafeFatalln

func UnsafeFatalln(v ...interface{})

func UnsafeGo

func UnsafeGo(msg string)

func UnsafeLog

func UnsafeLog(msg string)

func UnsafeNewLine

func UnsafeNewLine(msg string)

func UnsafeOk

func UnsafeOk(msg string)

func UnsafePrint

func UnsafePrint(v ...interface{})

func UnsafePrintf

func UnsafePrintf(format string, v ...interface{})

func UnsafePrintln

func UnsafePrintln(v ...interface{})

func UnsafeRollback

func UnsafeRollback(msg string)

func UnsafeRun

func UnsafeRun(msg string)

func UnsafeSkip

func UnsafeSkip(msg string)

func UnsafeStderr

func UnsafeStderr(stderr string)

func UnsafeWarn

func UnsafeWarn(msg string)

func Warn

func Warn(msg string)

Types

type Level

type Level uint32

func MustStringToLevel

func MustStringToLevel(levelString string) Level

func StringToLevel

func StringToLevel(levelString string) (Level, bool)

type Logger

type Logger bool

func V

func V(level Level) Logger

func (Logger) Die

func (l Logger) Die(msg string, err error)

func (Logger) Fail

func (l Logger) Fail(msg string)

func (Logger) FailWithDetails

func (l Logger) FailWithDetails(msg string, details string)

func (Logger) Fatal

func (l Logger) Fatal(v ...interface{})

func (Logger) Fatalf

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

func (Logger) Fatalln

func (l Logger) Fatalln(v ...interface{})

func (Logger) Go

func (l Logger) Go(msg string)

func (Logger) Lock

func (l Logger) Lock()

func (Logger) Log

func (l Logger) Log(msg string)

func (Logger) NewLine

func (l Logger) NewLine(msg string)

func (Logger) Ok

func (l Logger) Ok(msg string)

func (Logger) Print

func (l Logger) Print(v ...interface{})

func (Logger) Printf

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

func (Logger) Println

func (l Logger) Println(v ...interface{})

func (Logger) Rollback

func (l Logger) Rollback(msg string)

func (Logger) Run

func (l Logger) Run(msg string)

func (Logger) Skip

func (l Logger) Skip(msg string)

func (Logger) Stderr

func (l Logger) Stderr(stderr string)

func (Logger) Unlock

func (l Logger) Unlock()

func (Logger) UnsafeDie

func (l Logger) UnsafeDie(msg string, err error)

func (Logger) UnsafeFail

func (l Logger) UnsafeFail(msg string)

func (Logger) UnsafeFatal

func (l Logger) UnsafeFatal(v ...interface{})

func (Logger) UnsafeFatalf

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

func (Logger) UnsafeFatalln

func (l Logger) UnsafeFatalln(v ...interface{})

func (Logger) UnsafeGo

func (l Logger) UnsafeGo(msg string)

func (Logger) UnsafeLog

func (l Logger) UnsafeLog(msg string)

func (Logger) UnsafeNewLine

func (l Logger) UnsafeNewLine(msg string)

func (Logger) UnsafeOk

func (l Logger) UnsafeOk(msg string)

func (Logger) UnsafePrint

func (l Logger) UnsafePrint(v ...interface{})

func (Logger) UnsafePrintf

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

func (Logger) UnsafePrintln

func (l Logger) UnsafePrintln(v ...interface{})

func (Logger) UnsafeRollback

func (l Logger) UnsafeRollback(msg string)

func (Logger) UnsafeRun

func (l Logger) UnsafeRun(msg string)

func (Logger) UnsafeSkip

func (l Logger) UnsafeSkip(msg string)

func (Logger) UnsafeStderr

func (l Logger) UnsafeStderr(stderr string)

func (Logger) UnsafeWarn

func (l Logger) UnsafeWarn(msg string)

func (Logger) Warn

func (l Logger) Warn(msg string)

Jump to

Keyboard shortcuts

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